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 c33e04c
Show file tree
Hide file tree
Showing 8 changed files with 3,158 additions and 760 deletions.
9 changes: 8 additions & 1 deletion src/bio.c
Original file line number Diff line number Diff line change
Expand Up @@ -2837,7 +2837,14 @@ 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) {
#ifndef NO_FILESYSTEM
bio->ptr.fh = XBADFILE;
#endif
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 c33e04c

Please sign in to comment.