aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_crypto_lib.h
diff options
context:
space:
mode:
authorLRN <lrn1986@gmail.com>2013-03-03 01:57:14 +0000
committerLRN <lrn1986@gmail.com>2013-03-03 01:57:14 +0000
commit27d46ea3f6ceaef7f089d674f5634eeafa5e133a (patch)
tree76264fa77efa0ef27eae56705b3cb130ba0374a2 /src/include/gnunet_crypto_lib.h
parent058c49560ff702057bd8799c2d21b1fd70cb7134 (diff)
downloadgnunet-27d46ea3f6ceaef7f089d674f5634eeafa5e133a.tar.gz
gnunet-27d46ea3f6ceaef7f089d674f5634eeafa5e133a.zip
Be able to only-read-not-create RSA keys
Diffstat (limited to 'src/include/gnunet_crypto_lib.h')
-rw-r--r--src/include/gnunet_crypto_lib.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h
index 8c7f31010..1bfa988c2 100644
--- a/src/include/gnunet_crypto_lib.h
+++ b/src/include/gnunet_crypto_lib.h
@@ -992,6 +992,20 @@ GNUNET_CRYPTO_rsa_key_create_from_file (const char *filename);
992 992
993 993
994/** 994/**
995 * Open existing private key file and read it. If the
996 * file does not exist, or the contents of the file are
997 * invalid, the function fails
998 * Caller must free returned value.
999 *
1000 * @return a private key, NULL on error (for example,
1001 * permission denied) or when file does not exist or contains invalid
1002 * data.
1003 */
1004struct GNUNET_CRYPTO_RsaPrivateKey *
1005GNUNET_CRYPTO_rsa_key_create_from_existing_file (const char *filename);
1006
1007
1008/**
995 * Handle to cancel private key generation. 1009 * Handle to cancel private key generation.
996 */ 1010 */
997struct GNUNET_CRYPTO_RsaKeyGenerationContext; 1011struct GNUNET_CRYPTO_RsaKeyGenerationContext;