Skip to content

Commit 85fe324

Browse files
committed
d2i_ASN1_BOOLEAN() isn't supported by openssl 1.1
1 parent ebea594 commit 85fe324

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/grst_asn1.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,9 +302,8 @@ static int GRSTasn1Parse2(BIO *bp, unsigned char **pp, long length, int offset,
302302
{
303303
int ii;
304304

305-
opp=op;
306-
ii=d2i_ASN1_BOOLEAN(NULL,&opp,len+hl);
307-
if (ii < 0)
305+
ii = (int)*p;
306+
if (ii < 0 || (int)len != 1)
308307
{
309308
if ((bp != NULL) &&
310309
(BIO_write(bp,"Bad boolean\n",12)))

0 commit comments

Comments
 (0)