projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added SILC Thread Queue API
[silc.git]
/
lib
/
silccrypt
/
silcpk.h
diff --git
a/lib/silccrypt/silcpk.h
b/lib/silccrypt/silcpk.h
index de22c5ee7a050e11016c82752ae633b1f0761111..93a4bc66aa0bd60afda8bc0420de1d66a589ddc0 100644
(file)
--- a/
lib/silccrypt/silcpk.h
+++ b/
lib/silccrypt/silcpk.h
@@
-43,7
+43,7
@@
*
* SOURCE
*/
*
* SOURCE
*/
-typedef struct {
+typedef struct
SilcPublicKeyIdentifierObject
{
char *username;
char *host;
char *realname;
char *username;
char *host;
char *realname;
@@
-64,12
+64,12
@@
typedef struct {
*
* This structure defines the SILC protocol style public key. User
* doesn't have to access this structure usually, except when access to
*
* This structure defines the SILC protocol style public key. User
* doesn't have to access this structure usually, except when access to
- * the identifier is required. The silc_pkcs_
get_context
for the
+ * the identifier is required. The silc_pkcs_
public_key_get_pkcs
for the
* PKCS type SILC_PKCS_SILC returns this context.
*
* SOURCE
*/
* PKCS type SILC_PKCS_SILC returns this context.
*
* SOURCE
*/
-typedef struct {
+typedef struct
SilcSILCPublicKeyStruct
{
SilcPublicKeyIdentifierStruct identifier;
const SilcPKCSAlgorithm *pkcs; /* PKCS algorithm */
void *public_key; /* PKCS algorithm specific public key */
SilcPublicKeyIdentifierStruct identifier;
const SilcPKCSAlgorithm *pkcs; /* PKCS algorithm */
void *public_key; /* PKCS algorithm specific public key */
@@
-89,7
+89,7
@@
typedef struct {
*
* SOURCE
*/
*
* SOURCE
*/
-typedef struct {
+typedef struct
SilcSILCPrivateKeyStruct
{
const SilcPKCSAlgorithm *pkcs; /* PKCS algorithm */
void *private_key; /* PKCS algorithm specific private key */
} *SilcSILCPrivateKey;
const SilcPKCSAlgorithm *pkcs; /* PKCS algorithm */
void *private_key; /* PKCS algorithm specific private key */
} *SilcSILCPrivateKey;
@@
-142,8
+142,11
@@
SilcBool silc_pkcs_silc_generate_key(const char *algorithm,
* Protocol says that at least username and host must be provided.
* Caller must free the returned identifier string.
*
* Protocol says that at least username and host must be provided.
* Caller must free the returned identifier string.
*
+ * If `stack' is non-NULL the returned string is allocated from `stack'.
+ *
***/
***/
-char *silc_pkcs_silc_encode_identifier(char *username, char *host,
+char *silc_pkcs_silc_encode_identifier(SilcStack stack,
+ char *username, char *host,
char *realname, char *email,
char *org, char *country,
char *version);
char *realname, char *email,
char *org, char *country,
char *version);