diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-10-07 03:11:42 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-10-07 03:11:42 +0000 |
commit | ce3162d03510c9e87c508d4b854757bb501f8461 (patch) | |
tree | a404418b94b5b4a6a97d5be9f9e4fc5d8dce39d3 /src/common/crypto.h | |
parent | 2bba65148bd8b427bf3bb5753c371da8395552fc (diff) | |
download | tor-ce3162d03510c9e87c508d4b854757bb501f8461.tar.gz tor-ce3162d03510c9e87c508d4b854757bb501f8461.zip |
Make base-64-encoded DER work, including workaround for ugly openssl misfeature that makes base64 decoding fail when you strip out the newlines.
svn:r2423
Diffstat (limited to 'src/common/crypto.h')
-rw-r--r-- | src/common/crypto.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/crypto.h b/src/common/crypto.h index 699e4ad2a8..6d1e230b23 100644 --- a/src/common/crypto.h +++ b/src/common/crypto.h @@ -64,6 +64,9 @@ int crypto_pk_read_public_key_from_string(crypto_pk_env_t *env, const char *src, int crypto_pk_write_private_key_to_filename(crypto_pk_env_t *env, const char *fname); int crypto_pk_check_key(crypto_pk_env_t *env); int crypto_pk_read_private_key_from_filename(crypto_pk_env_t *env, const char *keyfile); +int crypto_pk_DER64_encode_public_key(crypto_pk_env_t *env, char **dest); +crypto_pk_env_t *crypto_pk_DER64_decode_public_key(const char *in); + int crypto_pk_cmp_keys(crypto_pk_env_t *a, crypto_pk_env_t *b); crypto_pk_env_t *crypto_pk_dup_key(crypto_pk_env_t *orig); |