Skip to content

Commit

Permalink
Merge pull request #8176 from SparkiDev/x509_coverage
Browse files Browse the repository at this point in the history
X509: improve testing coverage
  • Loading branch information
dgarske authored Nov 15, 2024
2 parents 8b1e921 + 86ad96c commit 54bdb39
Show file tree
Hide file tree
Showing 8 changed files with 3,157 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 54bdb39

Please sign in to comment.