Skip to content

Commit 64d842f

Browse files
committed
Build fix for OpenSSL < 1.1.0
1 parent bd33281 commit 64d842f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/p11_ec.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,11 @@ static int pkcs11_get_point_x509(EC_KEY *ec, X509 *x509)
255255
return rv;
256256
}
257257

258+
#if OPENSSL_VERSION_NUMBER < 0x10100000L
259+
#define ASN1_STRING_get0_data(os) ((os)->data)
260+
#define ASN1_STRING_length(x) ((os)->length)
261+
#endif
262+
258263
/* Retrieve EC point from key into ec
259264
* return nonzero on error */
260265
static int pkcs11_get_point(EC_KEY *ec, PKCS11_OBJECT_private *key, CK_SESSION_HANDLE session)

0 commit comments

Comments
 (0)