| abstract.h (3.0.26) | | abstract.h (3.0.29) | |
| | | | |
| skipping to change at line 39 | | skipping to change at line 39 | |
| #include <gnutls/pkcs11.h> | | #include <gnutls/pkcs11.h> | |
| #include <gnutls/openpgp.h> | | #include <gnutls/openpgp.h> | |
| | | | |
| #ifdef __cplusplus | | #ifdef __cplusplus | |
| extern "C" | | extern "C" | |
| { | | { | |
| #endif | | #endif | |
| | | | |
| /* Public key operations */ | | /* Public key operations */ | |
| | | | |
|
| | | #define GNUTLS_PUBKEY_VERIFY_FLAG_TLS_RSA 1 | |
| | | /* The following flag disables call to PIN callbacks etc. | |
| | | * Only works for TPM keys. | |
| | | */ | |
| | | #define GNUTLS_PUBKEY_GET_OPENPGP_FINGERPRINT (1<<3) | |
| | | | |
| struct gnutls_pubkey_st; | | struct gnutls_pubkey_st; | |
| typedef struct gnutls_pubkey_st *gnutls_pubkey_t; | | typedef struct gnutls_pubkey_st *gnutls_pubkey_t; | |
| | | | |
| struct gnutls_privkey_st; | | struct gnutls_privkey_st; | |
| typedef struct gnutls_privkey_st *gnutls_privkey_t; | | typedef struct gnutls_privkey_st *gnutls_privkey_t; | |
| | | | |
| typedef int (*gnutls_privkey_sign_func) (gnutls_privkey_t key, | | typedef int (*gnutls_privkey_sign_func) (gnutls_privkey_t key, | |
| void *userdata, | | void *userdata, | |
| const gnutls_datum_t * raw_data, | | const gnutls_datum_t * raw_data, | |
| gnutls_datum_t * signature); | | gnutls_datum_t * signature); | |
| | | | |
| skipping to change at line 136 | | skipping to change at line 142 | |
| | | | |
| int | | int | |
| gnutls_pubkey_encrypt_data (gnutls_pubkey_t key, unsigned int flags, | | gnutls_pubkey_encrypt_data (gnutls_pubkey_t key, unsigned int flags, | |
| const gnutls_datum_t * plaintext, | | const gnutls_datum_t * plaintext, | |
| gnutls_datum_t * ciphertext); | | gnutls_datum_t * ciphertext); | |
| | | | |
| int gnutls_x509_crt_set_pubkey (gnutls_x509_crt_t crt, gnutls_pubkey_t key)
; | | int gnutls_x509_crt_set_pubkey (gnutls_x509_crt_t crt, gnutls_pubkey_t key)
; | |
| | | | |
| int gnutls_x509_crq_set_pubkey (gnutls_x509_crq_t crq, gnutls_pubkey_t key)
; | | int gnutls_x509_crq_set_pubkey (gnutls_x509_crq_t crq, gnutls_pubkey_t key)
; | |
| | | | |
|
| #define GNUTLS_PUBKEY_VERIFY_FLAG_TLS_RSA 1 | | | |
| int | | int | |
| gnutls_pubkey_verify_hash (gnutls_pubkey_t key, unsigned int flags, | | gnutls_pubkey_verify_hash (gnutls_pubkey_t key, unsigned int flags, | |
| const gnutls_datum_t * hash, | | const gnutls_datum_t * hash, | |
| const gnutls_datum_t * signature); | | const gnutls_datum_t * signature); | |
| | | | |
| int | | int | |
| gnutls_pubkey_verify_hash2 (gnutls_pubkey_t key, | | gnutls_pubkey_verify_hash2 (gnutls_pubkey_t key, | |
| gnutls_sign_algorithm_t algo, | | gnutls_sign_algorithm_t algo, | |
| unsigned int flags, | | unsigned int flags, | |
| const gnutls_datum_t * hash, | | const gnutls_datum_t * hash, | |
| | | | |
End of changes. 2 change blocks. |
| 1 lines changed or deleted | | 6 lines changed or added | |
|
| gnutls.h (3.0.26) | | gnutls.h (3.0.29) | |
| | | | |
| skipping to change at line 54 | | skipping to change at line 54 | |
| #include <sys/types.h> | | #include <sys/types.h> | |
| /* *INDENT-ON* */ | | /* *INDENT-ON* */ | |
| #endif | | #endif | |
| /* Get time_t. */ | | /* Get time_t. */ | |
| #include <time.h> | | #include <time.h> | |
| #ifdef __cplusplus | | #ifdef __cplusplus | |
| extern "C" | | extern "C" | |
| { | | { | |
| #endif | | #endif | |
| | | | |
|
| #define GNUTLS_VERSION "3.0.26" | | #define GNUTLS_VERSION "3.0.29" | |
| | | | |
| #define GNUTLS_VERSION_MAJOR 3 | | #define GNUTLS_VERSION_MAJOR 3 | |
| #define GNUTLS_VERSION_MINOR 0 | | #define GNUTLS_VERSION_MINOR 0 | |
|
| #define GNUTLS_VERSION_PATCH 26 | | #define GNUTLS_VERSION_PATCH 29 | |
| | | | |
|
| #define GNUTLS_VERSION_NUMBER 0x03001a | | #define GNUTLS_VERSION_NUMBER 0x03001d | |
| | | | |
| #define GNUTLS_CIPHER_RIJNDAEL_128_CBC GNUTLS_CIPHER_AES_128_CBC | | #define GNUTLS_CIPHER_RIJNDAEL_128_CBC GNUTLS_CIPHER_AES_128_CBC | |
| #define GNUTLS_CIPHER_RIJNDAEL_256_CBC GNUTLS_CIPHER_AES_256_CBC | | #define GNUTLS_CIPHER_RIJNDAEL_256_CBC GNUTLS_CIPHER_AES_256_CBC | |
| #define GNUTLS_CIPHER_RIJNDAEL_CBC GNUTLS_CIPHER_AES_128_CBC | | #define GNUTLS_CIPHER_RIJNDAEL_CBC GNUTLS_CIPHER_AES_128_CBC | |
| #define GNUTLS_CIPHER_ARCFOUR GNUTLS_CIPHER_ARCFOUR_128 | | #define GNUTLS_CIPHER_ARCFOUR GNUTLS_CIPHER_ARCFOUR_128 | |
| | | | |
| /** | | /** | |
| * gnutls_cipher_algorithm_t: | | * gnutls_cipher_algorithm_t: | |
| * @GNUTLS_CIPHER_UNKNOWN: Unknown algorithm. | | * @GNUTLS_CIPHER_UNKNOWN: Unknown algorithm. | |
| * @GNUTLS_CIPHER_NULL: NULL algorithm. | | * @GNUTLS_CIPHER_NULL: NULL algorithm. | |
| | | | |
End of changes. 3 change blocks. |
| 3 lines changed or deleted | | 3 lines changed or added | |
|
| openpgp.h (3.0.26) | | openpgp.h (3.0.29) | |
| | | | |
| skipping to change at line 55 | | skipping to change at line 55 | |
| * | | * | |
| * Enumeration of different OpenPGP key formats. | | * Enumeration of different OpenPGP key formats. | |
| */ | | */ | |
| typedef enum gnutls_openpgp_crt_fmt | | typedef enum gnutls_openpgp_crt_fmt | |
| { | | { | |
| GNUTLS_OPENPGP_FMT_RAW, | | GNUTLS_OPENPGP_FMT_RAW, | |
| GNUTLS_OPENPGP_FMT_BASE64 | | GNUTLS_OPENPGP_FMT_BASE64 | |
| } gnutls_openpgp_crt_fmt_t; | | } gnutls_openpgp_crt_fmt_t; | |
| | | | |
| #define GNUTLS_OPENPGP_KEYID_SIZE 8 | | #define GNUTLS_OPENPGP_KEYID_SIZE 8 | |
|
| | | #define GNUTLS_OPENPGP_V4_FINGERPRINT_SIZE 20 | |
| typedef unsigned char gnutls_openpgp_keyid_t[GNUTLS_OPENPGP_KEYID_SIZE]; | | typedef unsigned char gnutls_openpgp_keyid_t[GNUTLS_OPENPGP_KEYID_SIZE]; | |
| | | | |
| /* gnutls_openpgp_cert_t should be defined in gnutls.h | | /* gnutls_openpgp_cert_t should be defined in gnutls.h | |
| */ | | */ | |
| | | | |
| /* initializes the memory for gnutls_openpgp_crt_t struct */ | | /* initializes the memory for gnutls_openpgp_crt_t struct */ | |
| int gnutls_openpgp_crt_init (gnutls_openpgp_crt_t * key); | | int gnutls_openpgp_crt_init (gnutls_openpgp_crt_t * key); | |
| /* frees all memory */ | | /* frees all memory */ | |
| void gnutls_openpgp_crt_deinit (gnutls_openpgp_crt_t key); | | void gnutls_openpgp_crt_deinit (gnutls_openpgp_crt_t key); | |
| | | | |
| | | | |
| skipping to change at line 302 | | skipping to change at line 303 | |
| * @session: a TLS session | | * @session: a TLS session | |
| * @keyfpr: key fingerprint | | * @keyfpr: key fingerprint | |
| * @keyfpr_length: length of key fingerprint | | * @keyfpr_length: length of key fingerprint | |
| * @key: output key. | | * @key: output key. | |
| * | | * | |
| * A callback of this type is used to retrieve OpenPGP keys. Only | | * A callback of this type is used to retrieve OpenPGP keys. Only | |
| * useful on the server, and will only be used if the peer send a key | | * useful on the server, and will only be used if the peer send a key | |
| * fingerprint instead of a full key. See also | | * fingerprint instead of a full key. See also | |
| * gnutls_openpgp_set_recv_key_function(). | | * gnutls_openpgp_set_recv_key_function(). | |
| * | | * | |
|
| | | * The variable @key must be allocated using gnutls_malloc(). | |
| | | * | |
| * Returns: On success, %GNUTLS_E_SUCCESS (zero) is returned, | | * Returns: On success, %GNUTLS_E_SUCCESS (zero) is returned, | |
| * otherwise an error code is returned. | | * otherwise an error code is returned. | |
| */ | | */ | |
| typedef int (*gnutls_openpgp_recv_key_func) (gnutls_session_t session, | | typedef int (*gnutls_openpgp_recv_key_func) (gnutls_session_t session, | |
| const unsigned char *keyfpr, | | const unsigned char *keyfpr, | |
| unsigned int keyfpr_length, | | unsigned int keyfpr_length, | |
| gnutls_datum_t * key); | | gnutls_datum_t * key); | |
| | | | |
| void | | void | |
| gnutls_openpgp_set_recv_key_function (gnutls_session_t session, | | gnutls_openpgp_set_recv_key_function (gnutls_session_t session, | |
| | | | |
End of changes. 2 change blocks. |
| 0 lines changed or deleted | | 3 lines changed or added | |
|
| pkcs11.h (3.0.26) | | pkcs11.h (3.0.29) | |
| | | | |
| skipping to change at line 228 | | skipping to change at line 228 | |
| } gnutls_pkcs11_obj_info_t; | | } gnutls_pkcs11_obj_info_t; | |
| | | | |
| int gnutls_pkcs11_obj_get_info (gnutls_pkcs11_obj_t crt, | | int gnutls_pkcs11_obj_get_info (gnutls_pkcs11_obj_t crt, | |
| gnutls_pkcs11_obj_info_t itype, void *outpu
t, | | gnutls_pkcs11_obj_info_t itype, void *outpu
t, | |
| size_t * output_size); | | size_t * output_size); | |
| | | | |
| /** | | /** | |
| * gnutls_pkcs11_obj_attr_t: | | * gnutls_pkcs11_obj_attr_t: | |
| * @GNUTLS_PKCS11_OBJ_ATTR_CRT_ALL: Specify all certificates. | | * @GNUTLS_PKCS11_OBJ_ATTR_CRT_ALL: Specify all certificates. | |
| * @GNUTLS_PKCS11_OBJ_ATTR_CRT_TRUSTED: Specify all certificates marked as
trusted. | | * @GNUTLS_PKCS11_OBJ_ATTR_CRT_TRUSTED: Specify all certificates marked as
trusted. | |
|
| | | * @GNUTLS_PKCS11_OBJ_ATTR_CRT_TRUSTED_CA: Specify all certificates marked
as trusted and are CAs. | |
| * @GNUTLS_PKCS11_OBJ_ATTR_CRT_WITH_PRIVKEY: Specify all certificates with
a corresponding private key. | | * @GNUTLS_PKCS11_OBJ_ATTR_CRT_WITH_PRIVKEY: Specify all certificates with
a corresponding private key. | |
| * @GNUTLS_PKCS11_OBJ_ATTR_PUBKEY: Specify all public keys. | | * @GNUTLS_PKCS11_OBJ_ATTR_PUBKEY: Specify all public keys. | |
| * @GNUTLS_PKCS11_OBJ_ATTR_PRIVKEY: Specify all private keys. | | * @GNUTLS_PKCS11_OBJ_ATTR_PRIVKEY: Specify all private keys. | |
| * @GNUTLS_PKCS11_OBJ_ATTR_ALL: Specify all objects. | | * @GNUTLS_PKCS11_OBJ_ATTR_ALL: Specify all objects. | |
| * | | * | |
| * Enumeration of several attributes for object enumeration. | | * Enumeration of several attributes for object enumeration. | |
| */ | | */ | |
| typedef enum | | typedef enum | |
| { | | { | |
| GNUTLS_PKCS11_OBJ_ATTR_CRT_ALL = 1, /* all certificates */ | | GNUTLS_PKCS11_OBJ_ATTR_CRT_ALL = 1, /* all certificates */ | |
| GNUTLS_PKCS11_OBJ_ATTR_CRT_TRUSTED, /* certificates marked as trusted
*/ | | GNUTLS_PKCS11_OBJ_ATTR_CRT_TRUSTED, /* certificates marked as trusted
*/ | |
| GNUTLS_PKCS11_OBJ_ATTR_CRT_WITH_PRIVKEY, /* certificates with corr
esponding private key */ | | GNUTLS_PKCS11_OBJ_ATTR_CRT_WITH_PRIVKEY, /* certificates with corr
esponding private key */ | |
| GNUTLS_PKCS11_OBJ_ATTR_PUBKEY, /* public keys */ | | GNUTLS_PKCS11_OBJ_ATTR_PUBKEY, /* public keys */ | |
| GNUTLS_PKCS11_OBJ_ATTR_PRIVKEY, /* private keys */ | | GNUTLS_PKCS11_OBJ_ATTR_PRIVKEY, /* private keys */ | |
|
| GNUTLS_PKCS11_OBJ_ATTR_ALL /* everything! */ | | GNUTLS_PKCS11_OBJ_ATTR_ALL, /* everything! */ | |
| | | GNUTLS_PKCS11_OBJ_ATTR_CRT_TRUSTED_CA, | |
| } gnutls_pkcs11_obj_attr_t; | | } gnutls_pkcs11_obj_attr_t; | |
| | | | |
| /** | | /** | |
| * gnutls_pkcs11_token_info_t: | | * gnutls_pkcs11_token_info_t: | |
| * @GNUTLS_PKCS11_TOKEN_LABEL: The token's label | | * @GNUTLS_PKCS11_TOKEN_LABEL: The token's label | |
| * @GNUTLS_PKCS11_TOKEN_SERIAL: The token's serial number | | * @GNUTLS_PKCS11_TOKEN_SERIAL: The token's serial number | |
| * @GNUTLS_PKCS11_TOKEN_MANUFACTURER: The token's manufacturer | | * @GNUTLS_PKCS11_TOKEN_MANUFACTURER: The token's manufacturer | |
| * @GNUTLS_PKCS11_TOKEN_MODEL: The token's model | | * @GNUTLS_PKCS11_TOKEN_MODEL: The token's model | |
| * | | * | |
| * Enumeration of types for retrieving token information. | | * Enumeration of types for retrieving token information. | |
| | | | |
End of changes. 2 change blocks. |
| 1 lines changed or deleted | | 3 lines changed or added | |
|