We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4db2605 commit d0f36a7Copy full SHA for d0f36a7
ext/openssl/ossl_asn1.c
@@ -131,8 +131,7 @@ asn1integer_to_num(const ASN1_INTEGER *ai)
131
ossl_raise(rb_eTypeError, "ASN1_INTEGER is NULL!");
132
}
133
if (ASN1_STRING_type(ai) == V_ASN1_ENUMERATED)
134
- /* const_cast: workaround for old OpenSSL */
135
- bn = ASN1_ENUMERATED_to_BN((ASN1_ENUMERATED *)ai, NULL);
+ bn = ASN1_ENUMERATED_to_BN(ai, NULL);
136
else
137
bn = ASN1_INTEGER_to_BN(ai, NULL);
138
0 commit comments