*/
int
gnutls_certificate_get_x509_key(gnutls_certificate_credentials_t res,
- int index,
+ unsigned index,
gnutls_x509_privkey_t *key)
{
if (index >= res->ncerts) {
*/
int
gnutls_certificate_get_x509_crt(gnutls_certificate_credentials_t res,
- int index,
+ unsigned index,
gnutls_x509_crt_t **crt_list,
- int *crt_list_size)
+ unsigned *crt_list_size)
{
- int ret, i;
+ int ret;
+ unsigned i;
if (index >= res->ncerts) {
gnutls_assert();
int crl_list_size);
int gnutls_certificate_get_x509_key(gnutls_certificate_credentials_t res,
- int index,
+ unsigned index,
gnutls_x509_privkey_t *key);
int gnutls_certificate_get_x509_crt(gnutls_certificate_credentials_t res,
- int index,
+ unsigned index,
gnutls_x509_crt_t **crt_list,
- int *crt_list_size);
+ unsigned *crt_list_size);
/* OCSP status request extension, RFC 6066 */
typedef int (*gnutls_status_request_ocsp_func)
int
gnutls_certificate_get_openpgp_key(gnutls_certificate_credentials_t res,
- int index,
+ unsigned index,
gnutls_openpgp_privkey_t *key);
int
gnutls_certificate_get_openpgp_crt(gnutls_certificate_credentials_t res,
- int index,
+ unsigned index,
gnutls_openpgp_crt_t **crt_list,
- int *crt_list_size);
+ unsigned *crt_list_size);
int
gnutls_certificate_set_openpgp_key_file
*/
int
gnutls_certificate_get_openpgp_key(gnutls_certificate_credentials_t res,
- int index,
+ unsigned index,
gnutls_openpgp_privkey_t *key)
{
if (index >= res->ncerts) {
*/
int
gnutls_certificate_get_openpgp_crt(gnutls_certificate_credentials_t res,
- int index,
+ unsigned index,
gnutls_openpgp_crt_t **crt_list,
- int *crt_list_size)
+ unsigned *crt_list_size)
{
- int ret, i;
+ int ret;
+ unsigned i;
if (index >= res->ncerts) {
gnutls_assert();
return 0;
}
+static
void check_loaded_key(gnutls_certificate_credentials_t cred)
{
int err;
gnutls_openpgp_privkey_t key;
gnutls_openpgp_crt_t *crts;
- int n_crts;
- gnutls_datum_t datum;
+ unsigned n_crts;
gnutls_openpgp_keyid_t keyid;
- int i;
+ unsigned i;
/* check that the getter functions for openpgp keys of
* gnutls_certificate_credentials_t work and deliver the
gnutls_x509_privkey_t get_key;
gnutls_x509_crt_t *get_crts;
- int n_get_crts;
+ unsigned n_get_crts;
gnutls_datum_t get_datum;
gnutls_x509_trust_list_t trust_list;
gnutls_x509_trust_list_iter_t trust_iter;
gnutls_x509_crt_t get_ca_crt;
- int n_get_ca_crts;
+ unsigned n_get_ca_crts;
/* this must be called once in the program
*/