../../lib/libgnutlsxx.la
noinst_PROGRAMS = ex-client2 ex-client-resume
-noinst_PROGRAMS += ex-cert-select ex-crq
-noinst_PROGRAMS += ex-serv1 ex-serv-export
+noinst_PROGRAMS += ex-cert-select
+
+if ENABLE_PKI
+noinst_PROGRAMS += ex-crq ex-serv1 ex-serv-export
+endif
if ENABLE_CXX
ex_cxx_SOURCES = ex-cxx.cpp
endif
if ENABLE_PSK
-noinst_PROGRAMS += ex-client-psk ex-serv-psk
+noinst_PROGRAMS += ex-client-psk
+if ENABLE_PKI
+noinst_PROGRAMS += ex-serv-psk
+endif
endif
if ENABLE_SRP
ret = gnutls_x509_privkey_import (tmpkey, raw_key, type);
+#ifdef ENABLE_PKI
/* If normal key decoding doesn't work try decoding a plain PKCS #8 key */
if (ret < 0)
- ret =
- gnutls_x509_privkey_import_pkcs8 (tmpkey, raw_key, type, NULL,
- GNUTLS_PKCS_PLAIN);
+ ret = gnutls_x509_privkey_import_pkcs8 (tmpkey, raw_key, type,
+ NULL, GNUTLS_PKCS_PLAIN);
+#endif
if (ret < 0)
{
addf (str, _("\t\t\tKey decipher only.\n"));
}
+#ifdef ENABLE_PKI
+
static void
print_crldist (gnutls_string * str, gnutls_x509_crt_t cert)
{
}
}
+#endif
+
static void
print_basic (gnutls_string * str, gnutls_x509_crt_t cert)
{
name = _("unknown");
addf (str, _("\tSubject Public Key Algorithm: %s\n"), name);
+#ifdef ENABLE_PKI
switch (err)
{
case GNUTLS_PK_RSA:
default:
break;
}
+#endif
}
}
addf (str, _("\t\tKey Purpose (%s):\n"),
critical ? _("critical") : _("not critical"));
+#ifdef ENABLE_PKI
print_key_purpose (str, cert);
+#endif
keypurpose_idx++;
}
addf (str, _("\t\tCRL Distribution points (%s):\n"),
critical ? _("critical") : _("not critical"));
+#ifdef ENABLE_PKI
print_crldist (str, cert);
+#endif
crldist_idx++;
}
return 0;
}
+#ifdef ENABLE_PKI
+
static void
print_crl (gnutls_string * str, gnutls_x509_crl_t crl, int notsigned)
{
return 0;
}
+
+#endif /* ENABLE_PKI */