Add functions returning security bits.
[openssl.git] / crypto / asn1 / ameth_lib.c
index 5fff22612010cb7bd069d35f24e1e28f980c414b..f317204d9cf21b672e02ba6873fff5447e2465f0 100644 (file)
@@ -462,3 +462,10 @@ void EVP_PKEY_asn1_set_ctrl(EVP_PKEY_ASN1_METHOD *ameth,
        {
        ameth->pkey_ctrl = pkey_ctrl;
        }
+
+void EVP_PKEY_asn1_set_security_bits(EVP_PKEY_ASN1_METHOD *ameth,
+                               int (*pkey_security_bits)(const EVP_PKEY *pk))
+       {
+       ameth->pkey_security_bits = pkey_security_bits;
+       }
+