Skip to content

Commit

Permalink
Merge pull request #8279 from LinuxJedi/sk_push_comments
Browse files Browse the repository at this point in the history
Fix code comments for some x509.c functions
  • Loading branch information
douzzer authored Dec 21, 2024
2 parents 67800c3 + 8ecbd34 commit ad20593
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/x509.c
Original file line number Diff line number Diff line change
Expand Up @@ -4158,7 +4158,7 @@ WOLFSSL_ASN1_TIME* wolfSSL_X509_get_notAfter(const WOLFSSL_X509* x509)
}


/* return 1 on success 0 on fail */
/* return number of elements on success 0 on fail */
int wolfSSL_sk_X509_push(WOLF_STACK_OF(WOLFSSL_X509_NAME)* sk,
WOLFSSL_X509* x509)
{
Expand Down Expand Up @@ -4303,7 +4303,7 @@ void wolfSSL_sk_X509_CRL_free(WOLF_STACK_OF(WOLFSSL_X509_CRL)* sk)
wolfSSL_sk_X509_CRL_pop_free(sk, NULL);
}

/* return 1 on success 0 on fail */
/* return number of elements on success 0 on fail */
int wolfSSL_sk_X509_CRL_push(WOLF_STACK_OF(WOLFSSL_X509_CRL)* sk,
WOLFSSL_X509_CRL* crl)
{
Expand Down Expand Up @@ -4337,7 +4337,7 @@ int wolfSSL_sk_X509_CRL_num(WOLF_STACK_OF(WOLFSSL_X509)* sk)
#endif /* OPENSSL_EXTRA || WOLFSSL_WPAS_SMALL */

#if defined(OPENSSL_EXTRA) || defined(WOLFSSL_QT)
/* return 1 on success 0 on fail */
/* return number of elements on success 0 on fail */
int wolfSSL_sk_ACCESS_DESCRIPTION_push(WOLF_STACK_OF(ACCESS_DESCRIPTION)* sk,
WOLFSSL_ACCESS_DESCRIPTION* a)
{
Expand Down Expand Up @@ -4546,7 +4546,7 @@ int wolfSSL_GENERAL_NAME_set0_othername(WOLFSSL_GENERAL_NAME* gen,
return WOLFSSL_SUCCESS;
}

/* return 1 on success 0 on fail */
/* return number of elements on success 0 on fail */
int wolfSSL_sk_GENERAL_NAME_push(WOLFSSL_GENERAL_NAMES* sk,
WOLFSSL_GENERAL_NAME* gn)
{
Expand Down Expand Up @@ -4724,7 +4724,7 @@ void wolfSSL_DIST_POINTS_free(WOLFSSL_DIST_POINTS *dps)
wolfSSL_sk_free(dps);
}

/* return 1 on success 0 on fail */
/* return number of elements on success 0 on fail */
int wolfSSL_sk_DIST_POINT_push(WOLFSSL_DIST_POINTS* sk, WOLFSSL_DIST_POINT* dp)
{
WOLFSSL_ENTER("wolfSSL_sk_DIST_POINT_push");
Expand Down Expand Up @@ -13557,7 +13557,7 @@ void wolfSSL_sk_X509_INFO_free(WOLF_STACK_OF(WOLFSSL_X509_INFO) *sk)
/* Adds the WOLFSSL_X509_INFO to the stack "sk". "sk" takes control of "in" and
* tries to free it when the stack is free'd.
*
* return 1 on success 0 on fail
* return number of elements on success 0 on fail
*/
int wolfSSL_sk_X509_INFO_push(WOLF_STACK_OF(WOLFSSL_X509_INFO)* sk,
WOLFSSL_X509_INFO* in)
Expand Down

0 comments on commit ad20593

Please sign in to comment.