make ASN1_OBJECT opaque
[oweals/openssl.git] / crypto / evp / evp_lib.c
index 966d9fb2722778aa6cdbaea96f2517240e0ddf80..8d000298626381c1b155ee2c46cb8c9ccd9a2f36 100644 (file)
@@ -176,7 +176,7 @@ int EVP_CIPHER_type(const EVP_CIPHER *ctx)
     default:
         /* Check it has an OID and it is valid */
         otmp = OBJ_nid2obj(nid);
-        if (!otmp || !otmp->data)
+        if (OBJ_get0_data(otmp) == NULL)
             nid = NID_undef;
         ASN1_OBJECT_free(otmp);
         return nid;