return 0;
}
-#ifdef ENABLE_PKCS11
-
/* Reads a private key from a token.
*/
static int
return ret;
}
-#endif /* ENABLE_PKCS11 */
-
/* Reads a certificate file
*/
static int
return ret;
}
-#ifdef ENABLE_PKI
-
static int
parse_pem_crl_mem (gnutls_x509_trust_list_t tlist,
const char * input_crl, unsigned int input_crl_size)
/* do nothing for now */
return;
}
-
-#endif
#include <gnutls_int.h>
#include <libtasn1.h>
-#ifdef ENABLE_PKI
-
#include <gnutls_datum.h>
#include <gnutls_global.h>
#include <gnutls_errors.h>
return ret;
}
-#endif
#include <gnutls_int.h>
-#ifdef ENABLE_PKI
-
#include <gnutls_datum.h>
#include <gnutls_global.h>
#include <gnutls_errors.h>
return 0;
}
-#endif /* ENABLE_PKI */
#include <gnutls_int.h>
-#ifdef ENABLE_PKI
-
#include <gnutls_datum.h>
#include <gnutls_global.h>
#include <gnutls_errors.h>
return ret;
}
-#endif /* ENABLE_PKI */
-
ext_data, critical);
}
-#ifdef ENABLE_PKI
int
_gnutls_x509_crq_set_extension (gnutls_x509_crq_t crq,
const char *ext_id,
return 0;
}
-#endif
-
/* Here we only extract the KeyUsage field, from the DER encoded
* extension.
*/
"tbsCertificate.subjectPublicKeyInfo", params);
}
-#ifdef ENABLE_PKI
-
/* Extracts DSA and RSA parameters from a certificate.
*/
int
params);
}
-#endif
-
-
/*
* This function writes and encodes the parameters for DSS or RSA keys.
* This is the "signatureAlgorithm" fields.
addf (str, _("%s\t\t\tKey decipher only.\n"), prefix);
}
-#ifdef ENABLE_PKI
-
static void
print_crldist (gnutls_buffer_st * str, gnutls_x509_crt_t cert)
{
}
}
-#endif
-
static void
print_basic (gnutls_buffer_st * str, const char *prefix, int type,
cert_type_t cert)
addf (str, _("%s\t\tKey Purpose (%s):\n"), prefix,
critical ? _("critical") : _("not critical"));
-#ifdef ENABLE_PKI
print_key_purpose (str, prefix, type, cert);
-#endif
-
keypurpose_idx++;
}
else if (strcmp (oid, "2.5.29.17") == 0)
addf (str, _("%s\t\tCRL Distribution points (%s):\n"), prefix,
critical ? _("critical") : _("not critical"));
-#ifdef ENABLE_PKI
if (type == TYPE_CRT)
print_crldist (str, cert.crt);
-#endif
-
crldist_idx++;
}
else if (strcmp (oid, "1.3.6.1.5.5.7.1.14") == 0)
addf (str, _("\tCertificate Security Level: %s (%d bits)\n"),
gnutls_sec_param_get_name (gnutls_pk_bits_to_sec_param
(err, bits)), bits);
-#ifdef ENABLE_PKI
err = gnutls_pubkey_init(&pubkey);
if (err < 0)
{
}
gnutls_pubkey_deinit(pubkey);
-#endif
}
}
}
}
-#ifdef ENABLE_PKI
-
static void
print_crl (gnutls_buffer_st * str, gnutls_x509_crl_t crl, int notsigned)
{
return ret;
}
-#endif /* ENABLE_PKI */
#include <gnutls_int.h>
#include <libtasn1.h>
-#ifdef ENABLE_PKI
-
#include <gnutls_datum.h>
#include <gnutls_global.h>
#include <gnutls_errors.h>
}
-
-#endif /* ENABLE_PKI */
#include <gnutls_int.h>
-#ifdef ENABLE_PKI
-
#include <gnutls_datum.h>
#include <gnutls_global.h>
#include <gnutls_errors.h>
return 0;
}
-
-
-#endif /* ENABLE_PKI */
#include <gnutls_int.h>
-#ifdef ENABLE_PKI
-
#include <gnutls_mpi.h>
#include <gnutls_errors.h>
#include <x509_int.h>
return rc;
}
-#endif /* ENABLE_PKI */
#include <gnutls_int.h>
#include <libtasn1.h>
-#ifdef ENABLE_PKI
-
#include <gnutls_datum.h>
#include <gnutls_global.h>
#include <gnutls_errors.h>
asn1_delete_structure (&c2);
return result;
}
-
-#endif /* ENABLE_PKI */
+
\ No newline at end of file
failover:
/* Try PKCS #8 */
-#ifdef ENABLE_PKI
if (result == GNUTLS_E_BASE64_UNEXPECTED_HEADER_ERROR)
{
_gnutls_debug_log ("Falling back to PKCS #8 key decoding\n");
result = gnutls_x509_privkey_import_pkcs8 (key, data, format,
NULL, GNUTLS_PKCS_PLAIN);
}
-#endif
if (need_free)
_gnutls_free_datum (&_data);
}
-#ifdef ENABLE_PKI
/*-
* _gnutls_x509_privkey_sign_hash2:
* @signer: Holds the signer's key
return 0;
}
-#endif
#include <gnutls_int.h>
-#ifdef ENABLE_PKI
-
#include <gnutls_datum.h>
#include <gnutls_global.h>
#include <gnutls_errors.h>
return result;
}
-
-#endif
#include <gnutls_int.h>
-#ifdef ENABLE_PKI
-
#include <gnutls_errors.h>
#include <libtasn1.h>
#include <gnutls_global.h>
return 0;
}
-#endif
/* Check for revoked certificates in the chain.
*/
-#ifdef ENABLE_PKI
for (i = 0; i < cert_list_length; i++)
{
ret = gnutls_x509_crt_check_revocation (cert_list[i],
*verify |= GNUTLS_CERT_INVALID;
}
}
-#endif
return 0;
}
return 0;
}
-
-
-#ifdef ENABLE_PKI
-
/**
* gnutls_x509_crl_check_issuer:
* @crl: is the CRL to be checked
return result;
}
-#endif
}
-#ifdef ENABLE_PKI
-
/* This is exactly as gnutls_x509_crt_check_revocation() except that
* it calls func.
*/
}
-#endif
/**
* gnutls_x509_crt_list_import2:
* @certs: The structures to store the parsed certificate. Must not be initialized.
#include <gnutls_int.h>
-#ifdef ENABLE_PKI
-
#include <gnutls_datum.h>
#include <gnutls_global.h>
#include <gnutls_errors.h>
return 0;
}
-
-
-#endif /* ENABLE_PKI */
printf ("Processed %d CA certificate(s).\n", ret);
}
}
-#ifdef ENABLE_PKI
if (x509_crlfile != NULL)
{
ret = gnutls_certificate_set_x509_crl_file (xcred, x509_crlfile,
printf ("Processed %d CRL(s).\n", ret);
}
}
-#endif
load_keys ();
#include <config.h>
-#ifdef ENABLE_PKI
-
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
return 0;
}
-#endif
printf ("Processed %d CA certificate(s).\n", ret);
}
}
-#ifdef ENABLE_PKI
if (x509_crlfile != NULL)
{
if ((ret = gnutls_certificate_set_x509_crl_file
printf ("Processed %d CRL(s).\n", ret);
}
}
-#endif
#ifdef ENABLE_OPENPGP
if (pgp_keyring != NULL)