diff options
author | Martin Willi <martin@strongswan.org> | 2009-08-11 16:24:01 +0200 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2009-08-26 11:23:48 +0200 |
commit | 160f4c225db0deacc3670c4cff0609bda8e29f73 (patch) | |
tree | 4405b13114c9cba9f8f949ec2cb626b758e6b448 /src/libstrongswan/credentials/builder.h | |
parent | 5672eae131e834acacc12ffbf08b5a4486affc96 (diff) | |
download | strongswan-160f4c225db0deacc3670c4cff0609bda8e29f73.tar.bz2 strongswan-160f4c225db0deacc3670c4cff0609bda8e29f73.tar.xz |
moved PEM parsing functionality to its own plugin
Diffstat (limited to 'src/libstrongswan/credentials/builder.h')
-rw-r--r-- | src/libstrongswan/credentials/builder.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/libstrongswan/credentials/builder.h b/src/libstrongswan/credentials/builder.h index 01ccf2a5c..9c73f6e7c 100644 --- a/src/libstrongswan/credentials/builder.h +++ b/src/libstrongswan/credentials/builder.h @@ -44,12 +44,18 @@ enum builder_part_t { BUILD_AGENT_SOCKET, /** DER encoded ASN.1 blob, chunk_t */ BUILD_BLOB_ASN1_DER, - /** PEM encoded ASN.1 blob, null terminated char* */ - BUILD_BLOB_ASN1_PEM, + /** PEM encoded ASN.1/PGP blob, chunk_t */ + BUILD_BLOB_PEM, /** OpenPGP key blob, chunk_t */ BUILD_BLOB_PGP, /** RFC 3110 DNS public key blob, chunk_t */ BUILD_BLOB_RFC_3110, + /** passphrase for e.g. PEM decryption, chunk_t */ + BUILD_PASSPHRASE, + /** passphrase callback, chunk_t(*fn)(void *user, int try), void *user. + * The callback is invoked until the returned passphrase is accepted, or + * a zero-length passphrase is returned. Try starts at 1. */ + BUILD_PASSPHRASE_CALLBACK, /** key size in bits, as used for key generation, u_int */ BUILD_KEY_SIZE, /** private key to use for signing, private_key_t* */ |