File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1300,9 +1300,6 @@ then
13001300 test "$enable_openvpn" = "" && enable_openvpn=yes
13011301 test "$enable_asio" = "" && enable_asio=yes
13021302 test "$enable_libwebsockets" = "" && enable_libwebsockets=yes
1303- if test "$ENABLED_FIPS" = "no" || test "$HAVE_FIPS_VERSION" -le 5; then
1304- test "$enable_qt" = "" && enable_qt=yes
1305- fi
13061303 fi
13071304 fi
13081305
Original file line number Diff line number Diff line change @@ -1995,12 +1995,18 @@ int wolfSSL_OCSP_id_get0_info(WOLFSSL_ASN1_STRING **name,
19951995 ser -> dataMax = WOLFSSL_ASN1_INTEGER_MAX ;
19961996 }
19971997
1998- ser -> data [i ++ ] = ASN_INTEGER ;
1999- i += SetLength (cid -> status -> serialSz , ser -> data + i );
2000- XMEMCPY (& ser -> data [i ], cid -> status -> serial ,
2001- (size_t )cid -> status -> serialSz );
2002- ser -> length = i + cid -> status -> serialSz ;
2003-
1998+ #if defined(WOLFSSL_QT ) || defined(WOLFSSL_HAPROXY )
1999+ /* Serial number starts at 0 index of ser->data */
2000+ XMEMCPY (& ser -> data [i ], cid -> status -> serial ,
2001+ (size_t )cid -> status -> serialSz );
2002+ ser -> length = cid -> status -> serialSz ;
2003+ #else
2004+ ser -> data [i ++ ] = ASN_INTEGER ;
2005+ i += SetLength (cid -> status -> serialSz , ser -> data + i );
2006+ XMEMCPY (& ser -> data [i ], cid -> status -> serial ,
2007+ (size_t )cid -> status -> serialSz );
2008+ ser -> length = i + cid -> status -> serialSz ;
2009+ #endif
20042010 cid -> status -> serialInt = ser ;
20052011 * serial = ser ;
20062012 }
Original file line number Diff line number Diff line change @@ -11005,10 +11005,15 @@ WOLFSSL_ASN1_INTEGER* wolfSSL_X509_get_serialNumber(WOLFSSL_X509* x509)
1100511005 a->dataMax = WOLFSSL_ASN1_INTEGER_MAX;
1100611006 }
1100711007
11008- a->data[i++] = ASN_INTEGER;
11009- i += SetLength(x509->serialSz, a->data + i);
11010- XMEMCPY(&a->data[i], x509->serial, x509->serialSz);
11011- a->length = x509->serialSz + 2;
11008+ #if defined(WOLFSSL_QT) || defined(WOLFSSL_HAPROXY)
11009+ XMEMCPY(&a->data[i], x509->serial, x509->serialSz);
11010+ a->length = x509->serialSz;
11011+ #else
11012+ a->data[i++] = ASN_INTEGER;
11013+ i += SetLength(x509->serialSz, a->data + i);
11014+ XMEMCPY(&a->data[i], x509->serial, x509->serialSz);
11015+ a->length = x509->serialSz + 2;
11016+ #endif
1101211017
1101311018 x509->serialNumber = a;
1101411019
You can’t perform that action at this time.
0 commit comments