projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'refs/heads/t/rm_rc4'
[paraslash.git]
/
crypt.h
diff --git
a/crypt.h
b/crypt.h
index f5f8aca628da98f34f5e8c22cc324f8afb62bc38..5e25748c09551bf1b33e7b142baaafd73df5bd36 100644
(file)
--- a/
crypt.h
+++ b/
crypt.h
@@
-51,22
+51,21
@@
int priv_decrypt(const char *key_file, unsigned char *outbuf,
* Read an asymmetric key from a file.
*
* \param key_file The file containing the key.
* Read an asymmetric key from a file.
*
* \param key_file The file containing the key.
- * \param private if non-zero, read the private key, otherwise the public key.
* \param result The key structure is returned here.
*
* \return The size of the key on success, negative on errors.
*/
* \param result The key structure is returned here.
*
* \return The size of the key on success, negative on errors.
*/
-int get_asymmetric_key(const char *key_file, int private,
- struct asymmetric_key **result);
+int get_public_key(const char *key_file, struct asymmetric_key **result);
/**
/**
- * Deallocate a
n asymmetric key structure
.
+ * Deallocate a
public key
.
*
* \param key Pointer to the key structure to free.
*
*
* \param key Pointer to the key structure to free.
*
- * This must be called for any key obtained by get_asymmetric_key().
+ * This should be called for keys obtained by get_public_key() if the key is no
+ * longer needed.
*/
*/
-void free_
asymmetr
ic_key(struct asymmetric_key *key);
+void free_
publ
ic_key(struct asymmetric_key *key);
/**
/**