Fix build with no-cmac
authorDirk Feytons <dirk.feytons@technicolor.com>
Thu, 2 Jun 2016 13:31:57 +0000 (15:31 +0200)
committerRich Salz <rsalz@openssl.org>
Fri, 3 Jun 2016 17:03:29 +0000 (13:03 -0400)
Add missing ifdefs. Same change is already present in master, see
b4a3aeebd9f9280aa7e69a343f5c824e68466d90

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1155)

crypto/asn1/ameth_lib.c
crypto/evp/pmeth_lib.c

index 5389c0434740a57e5d56a578d1bd94290326c85a..43ddebba33a6a42f3670f733a8a45827ae935114 100644 (file)
@@ -93,7 +93,9 @@ static const EVP_PKEY_ASN1_METHOD *standard_methods[] = {
     &eckey_asn1_meth,
 #endif
     &hmac_asn1_meth,
+#ifndef OPENSSL_NO_CMAC
     &cmac_asn1_meth,
+#endif
 #ifndef OPENSSL_NO_DH
     &dhx_asn1_meth
 #endif
index 9f81d10021a065d820025896575924c90f0a4297..9668b3a9bcfb9c1d3c1f80f25588099794674685 100644 (file)
@@ -91,7 +91,9 @@ static const EVP_PKEY_METHOD *standard_methods[] = {
     &ec_pkey_meth,
 #endif
     &hmac_pkey_meth,
+#ifndef OPENSSL_NO_CMAC
     &cmac_pkey_meth,
+#endif
 #ifndef OPENSSL_NO_DH
     &dhx_pkey_meth
 #endif