![]() |
![]() |
![]() |
GNU TLS API Reference Manual | ![]() |
---|---|---|---|---|
#define LIBGNUTLS_PKCS11_VERSION int gnutls_pkcs11_get_ca_certificates (gnutls_x509_crt_t **cert_list, unsigned int *ncerts); int gnutls_pkcs11_get_user_certificates (gnutls_x509_crt_t **cert_list, unsigned int *ncerts); int gnutls_pkcs11_sign (gnutls_datum_t *cert, const gnutls_datum_t *hash_concat, gnutls_datum_t *signature);
int gnutls_pkcs11_get_ca_certificates (gnutls_x509_crt_t **cert_list, unsigned int *ncerts);
Get a list of X.509 certificates from the PKCS11 provider which
are marked as CKA_TRUSTED. Each certificate must be deallocated,
by the caller, using gnutls_x509_crt_deinit()
, and the array itself
must be deallocated using gnutls_free()
.
cert_list : |
|
ncerts : |
|
Returns : |
int gnutls_pkcs11_get_user_certificates (gnutls_x509_crt_t **cert_list, unsigned int *ncerts);
cert_list : |
|
ncerts : |
|
Returns : |