diff options
author | LRN <lrn1986@gmail.com> | 2013-03-03 01:57:14 +0000 |
---|---|---|
committer | LRN <lrn1986@gmail.com> | 2013-03-03 01:57:14 +0000 |
commit | 27d46ea3f6ceaef7f089d674f5634eeafa5e133a (patch) | |
tree | 76264fa77efa0ef27eae56705b3cb130ba0374a2 /src/include/gnunet_crypto_lib.h | |
parent | 058c49560ff702057bd8799c2d21b1fd70cb7134 (diff) | |
download | gnunet-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.h | 14 |
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 | */ | ||
1004 | struct GNUNET_CRYPTO_RsaPrivateKey * | ||
1005 | GNUNET_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 | */ |
997 | struct GNUNET_CRYPTO_RsaKeyGenerationContext; | 1011 | struct GNUNET_CRYPTO_RsaKeyGenerationContext; |