keystore.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef CCN_KEYSTORE_DEFINED
00026 #define CCN_KEYSTORE_DEFINED
00027
00028 #include <stddef.h>
00029
00030
00031
00032
00033 struct ccn_keystore;
00034
00035
00036
00037
00038 struct ccn_pkey;
00039
00040
00041
00042
00043 struct ccn_certificate;
00044
00045 struct ccn_keystore *ccn_keystore_create(void);
00046 void ccn_keystore_destroy(struct ccn_keystore **p);
00047 int ccn_keystore_init(struct ccn_keystore *p, char *name, char *password);
00048 const struct ccn_pkey *ccn_keystore_private_key(struct ccn_keystore *p);
00049 const struct ccn_pkey *ccn_keystore_public_key(struct ccn_keystore *p);
00050 ssize_t ccn_keystore_public_key_digest_length(struct ccn_keystore *p);
00051 const unsigned char *ccn_keystore_public_key_digest(struct ccn_keystore *p);
00052 const struct ccn_certificate *ccn_keystore_certificate(struct ccn_keystore *p);
00053
00054 #endif