diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-06-13 18:15:53 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-06-13 18:15:53 +0000 |
commit | 3637ee0e596c08edf271563ef4ddbbebcfda7873 (patch) | |
tree | 1143f592526d1a509d6858e5ee6bdd9f49c02600 /src/common/crypto.c | |
parent | 89b7021a8b80fc324439726ebe58087098200a8e (diff) | |
download | tor-3637ee0e596c08edf271563ef4ddbbebcfda7873.tar.gz tor-3637ee0e596c08edf271563ef4ddbbebcfda7873.zip |
r13383@catbus: nickm | 2007-06-13 13:53:04 -0400
Expose a function to parse a private key from a string as CRYPTO_PRIVATE. For testing.
svn:r10583
Diffstat (limited to 'src/common/crypto.c')
-rw-r--r-- | src/common/crypto.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c index adf375bd83..588d63ac0e 100644 --- a/src/common/crypto.c +++ b/src/common/crypto.c @@ -413,7 +413,8 @@ crypto_pk_generate_key(crypto_pk_env_t *env) /** Read a PEM-encoded private key from the string <b>s</b> into <b>env</b>. * Return 0 on success, -1 on failure. */ -static int +/* Used here, and used for testing. */ +int crypto_pk_read_private_key_from_string(crypto_pk_env_t *env, const char *s) { |