Edouard Tisserant
462e6ed693
Moved copyright+disclamer from BSD to COPYRIGHT file and restored GPL license material, accidentaly deleted earlier.
7 years ago
Edouard Tisserant
5639512243
Forgotten commit
7 years ago
Edouard Tisserant
372172ec40
Fixed openssl broken dependency in xcode project file, more useless file removed
7 years ago
Edouard Tisserant
7e30d01607
move dist/* -> .
7 years ago
Edouard Tisserant
447eee06bc
move dist/src/lib/* -> dist/src/
7 years ago
Edouard Tisserant
d8e88d6432
Stripped unused netpgp files
7 years ago
Edouard Tisserant
a2d65b0deb
ios: forced deployment target to 7.0
7 years ago
Edouard Tisserant
dde1dee894
Avoid free if not seckey subkey wasn't allocated
7 years ago
Edouard Tisserant
2d87b92412
Fixed seckey export (wrong length, missing 16bit checksum)
7 years ago
Edouard Tisserant
5541bd2d1f
Fixed wrong format for seckey packet (s2k was missing if no conversion)
7 years ago
Edouard Tisserant
19593d8500
added Key Flags signature sub-packet writing. Reflected subpacket content to key's singinfo structure to allow gnerates keys to be used immediately without reparsing.
7 years ago
Edouard Tisserant
b9781b1cf8
pgp_getkeybyfpr extended to support revoke/expired checks
7 years ago
Edouard Tisserant
770366be34
Build on IOS : more agressive sshkey support stripping, worked arround LLVM making undefined symbol when calling non static inline c function, stripped useless project settings
8 years ago
Edouard Tisserant
0af98ad54a
added xcode build project files in dist/netpgp-xcode
8 years ago
Edouard Tisserant
568fdd4dbe
Fix for iOS build
8 years ago
Edouard Tisserant
150e3b0aa6
Stripped JSON related code, and disabled build of command line tools. Only src/lib remains being built.
8 years ago
Edouard Tisserant
e2fa5a2189
Added pgp_key_get_primary_userid, returning pointer to C string
8 years ago
Edouard Tisserant
de1b28475c
Added key expiration time sig subpacket. Fixed segfault on fileread filter in case of failure in opening file.
8 years ago
Edouard Tisserant
bf97027d73
Added public key parameter to pgp_add_selfsigned_userid, to add userid to both secret anf public key simultaneously.
8 years ago
Edouard Tisserant
dd43fa3a92
pgg_key_revoke takes both secure public key as parameters, and add revocation signature to both of them. Fixed pgp_filter_keys_fileread, which wasn't initializing cbinfo->io, segfaulting when trying to print an error
8 years ago
Edouard Tisserant
fda602171a
Added pgp_key_revoke. Fixed unencrypted secret key export. Fixed unwanted free compromizing keydata when decypting session key (openssl-crypto).
8 years ago
Edouard Tisserant
84dfa75cd3
removed some debug code
8 years ago
Edouard Tisserant
39200f9be7
Added key rating
8 years ago
Edouard Tisserant
fed3b718dc
Fixed elgamal key transerable key output - key size was not computed in that case
8 years ago
Edouard Tisserant
97ebbb6988
Fixed segfault on pre-existing subkey update
8 years ago
Edouard Tisserant
a644a6aea9
Added signature duplicates detection when updtating keys
8 years ago
Edouard Tisserant
8728bcc1d5
Fixed transferable key output.
8 years ago
Edouard Tisserant
68575d89f5
More fixes. Work in progress. Key export still broken (incl saving rings)
8 years ago
Edouard Tisserant
0b52dfca5f
Many fixes on recent changes. To be continued
8 years ago
Edouard Tisserant
598f6290e6
Various recent code cleanup. Added secret counterpart to get_enckey and get_sigkey :
...
get_deckey and get_certkey
Note : get_certkey is for the secret part of the signing key
get_sigkey if for the public part of the signing key
renaming cert->sign and sig->valid would be less confusing
8 years ago
Edouard Tisserant
d99aff2a70
Now keys (pgp_key_t) contains only validated keys, uid or subkey,
...
along with signature info and signature raw packet.
Effects :
- Should import untrusted key data safely, keyring file/mem read replaced
by validating filter. Only keys, uid or subkey with valid sig can enter.
- Keyring queries use stored signature infos to elect best result. Uses
youngest relevant signature to decide about expiration.
- Support for key/subkey encryption and signing roles described in rfc4880
through the Key Flags subpacket.
Side effects:
- Encrypted seckey support broken
- SSH keyring support broken
- Probably some quircks in packet-print.c
Status:
- Builds
- Untested
8 years ago
Edouard Tisserant
5fcaf4b5c9
Key Filter now deals with uids and subkeys.
...
Started extending pgp_key_t, changes need to be propagated.
8 years ago
Edouard Tisserant
2d26a1791e
Various small changes, paving the way for more picky key importing.
...
Changed:
pgp_subsig_t.pgp_sig_t -> pgp_uidsig_t.pgp_sig_info_t
copy_sig_info : also duplicate sig's BNs
pgp_validate_key_cb :
- accepts NULL validate_key_cb_t, in case result's
siglists are discarded (i.e. for filtering).
- relase packet eventualy copied by on_valid.
Renamed:
pgp_key_t.subsigs -> pgp_key_t.uidsigs
pgp_subsig_t -> pgp_uidsig_t
8 years ago
Edouard Tisserant
a389cbfa7e
Added pgp_ensure_pubkey
8 years ago
Edouard Tisserant
0e3e78b365
merge
8 years ago
Edouard Tisserant
a78a9dfa63
Added packet collection capability to on_valid callback. Added pgp_filter_keys_from_mem with stub key_filter_cb. To be continued.
8 years ago
Edouard Tisserant
985448a132
Added on_valid callback, itself called from key validation callback, for secure filtering purpose. Also enforced rfc4880 key packet sequencing
8 years ago
Edouard Tisserant
ae8aa3f5a9
Fixed uninitialized variable in keyring purge
8 years ago
Edouard Tisserant
e4f7ba589a
stripped useless pgp_getkeybyfpr parameter
8 years ago
Edouard Tisserant
1176387389
Fixes in pgp_keydata_dup, added more DYNARRAY handling macros, plus some strange WTF stuff commented out in add key to pubring
8 years ago
Edouard Tisserant
473336309a
fixed pgp_getkeybyfpr
8 years ago
Edouard Tisserant
25ddf15144
keyring : better error handling on recent code added pgp_keyring_purge. create : workaround problems when outputing key data
8 years ago
Edouard Tisserant
df0053cbfc
Added 'get' key by fingerprint, 'delelet' key by id an by fingerprint
8 years ago
Edouard Tisserant
ec72218253
Keeping a backup of previous ring file is now an option
8 years ago
Edouard Tisserant
5ed7a0d585
Fixed nasty leftover statement in netpgp_save_ring. Added accumulated memory free in case of stacked accumulating readers.
8 years ago
Edouard Tisserant
21d96a82f2
netpgp_save_pubring (ok), netpgp_save_secring (broken), raw initial key packet for generated keys
8 years ago
Edouard Tisserant
711fd28093
netpgp_save_pubkeys
8 years ago
Edouard Tisserant
8423fdb58e
pgp_encrypt_buf now accepts multiple recipients and raw openPGP message as input
8 years ago
Edouard Tisserant
1e8d2a8003
simplified pgp_validate_mem_detached's detached memory assignment. reverted previous change to pgp_validation_t
8 years ago
Edouard Tisserant
80084e826f
fixed pgp_validate_mem_detached memory leak
8 years ago