Skip to content

Commit

Permalink
X509: improve testing coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
SparkiDev committed Nov 12, 2024
1 parent 4996aed commit d44e0fa
Show file tree
Hide file tree
Showing 8 changed files with 3,077 additions and 743 deletions.
7 changes: 6 additions & 1 deletion src/bio.c
Original file line number Diff line number Diff line change
Expand Up @@ -2837,7 +2837,12 @@ int wolfSSL_BIO_flush(WOLFSSL_BIO* bio)
(bio->type == WOLFSSL_BIO_DGRAM))
{
bio->num.fd = SOCKET_INVALID;
} else {
}
else if (bio->type == WOLFSSL_BIO_FILE) {
bio->ptr.fh = XBADFILE;
bio->num.fd = SOCKET_INVALID;
}
else {
bio->num.length = 0;
}
bio->init = 1;
Expand Down
2 changes: 1 addition & 1 deletion src/ssl_asn1.c
Original file line number Diff line number Diff line change
Expand Up @@ -2912,7 +2912,7 @@ static WOLFSSL_ASN1_STRING* d2i_ASN1_STRING(WOLFSSL_ASN1_STRING** out,
byte tag = 0;
int length = 0;

WOLFSSL_ENTER("d2i_ASN1_GENERALSTRING");
WOLFSSL_ENTER("d2i_ASN1_STRING");

if (src == NULL || *src == NULL || len == 0)
return NULL;
Expand Down
Loading

0 comments on commit d44e0fa

Please sign in to comment.