Skip to content

Commit

Permalink
Addressing review comments from dgarske
Browse files Browse the repository at this point in the history
  • Loading branch information
anhu committed Nov 12, 2024
1 parent 0508151 commit b1ccbbc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/x509.c
Original file line number Diff line number Diff line change
Expand Up @@ -14842,7 +14842,8 @@ void wolfSSL_X509_REQ_free(WOLFSSL_X509* req)
wolfSSL_X509_free(req);
}

int wolfSSL_X509_REQ_set_version(WOLFSSL_X509 *x, long version) {
int wolfSSL_X509_REQ_set_version(WOLFSSL_X509 *x, long version)
{
WOLFSSL_ENTER("wolfSSL_X509_REQ_set_version");
if ((x == NULL) || (version < 0) || (version >= INT_MAX)) {
return WOLFSSL_FAILURE;
Expand All @@ -14851,10 +14852,11 @@ int wolfSSL_X509_REQ_set_version(WOLFSSL_X509 *x, long version) {
return WOLFSSL_SUCCESS;
}

long wolfSSL_X509_REQ_get_version(const WOLFSSL_X509 *req) {
long wolfSSL_X509_REQ_get_version(const WOLFSSL_X509 *req)
{
WOLFSSL_ENTER("wolfSSL_X509_REQ_get_version");
if (req == NULL) {
return WOLFSSL_FAILURE;
return 0; /* invalid arg */
}
return (long)req->version;
}
Expand Down

0 comments on commit b1ccbbc

Please sign in to comment.