@@ -14865,10 +14865,13 @@ int wolfSSL_dtls_cid_get_tx(WOLFSSL* ssl, unsigned char* buffer,
1486514865 ciphersuites and signature algorithms.
1486614866
1486714867 \param [in] ssl The WOLFSSL object to extract the lists from.
14868- \param [out] suites Raw and unfiltered list of client ciphersuites
14869- \param [out] suiteSz Size of suites in bytes
14870- \param [out] hashSigAlgo Raw and unfiltered list of client signature algorithms
14871- \param [out] hashSigAlgoSz Size of hashSigAlgo in bytes
14868+ \param [out] optional suites Raw and unfiltered list of client ciphersuites
14869+ \param [out] optional suiteSz Size of suites in bytes
14870+ \param [out] optional hashSigAlgo Raw and unfiltered list of client
14871+ signature algorithms
14872+ \param [out] optional hashSigAlgoSz Size of hashSigAlgo in bytes
14873+ \return WOLFSSL_SUCCESS when suites available
14874+ \return WOLFSSL_FAILURE when suites not available
1487214875
1487314876 _Example_
1487414877 \code
@@ -14893,7 +14896,7 @@ int wolfSSL_dtls_cid_get_tx(WOLFSSL* ssl, unsigned char* buffer,
1489314896 \sa wolfSSL_get_ciphersuite_info
1489414897 \sa wolfSSL_get_sigalg_info
1489514898*/
14896- void wolfSSL_get_client_suites_sigalgs (const WOLFSSL * ssl ,
14899+ int wolfSSL_get_client_suites_sigalgs (const WOLFSSL * ssl ,
1489714900 const byte * * suites , word16 * suiteSz ,
1489814901 const byte * * hashSigAlgo , word16 * hashSigAlgoSz );
1489914902
@@ -14936,6 +14939,10 @@ WOLFSSL_CIPHERSUITE_INFO wolfSSL_get_ciphersuite_info(byte first,
1493614939 \param [out] hashAlgo The enum wc_HashType of the MAC algorithm
1493714940 \param [out] sigAlgo The enum Key_Sum of the authentication algorithm
1493814941
14942+ \return 0 when info was correctly set
14943+ \return BAD_FUNC_ARG when either input paramters are NULL or the bytes
14944+ are not a recognized sigalg suite
14945+
1493914946 _Example_
1494014947 \code
1494114948 enum wc_HashType hashAlgo;
@@ -14953,5 +14960,5 @@ WOLFSSL_CIPHERSUITE_INFO wolfSSL_get_ciphersuite_info(byte first,
1495314960 \sa wolfSSL_get_client_suites_sigalgs
1495414961 \sa wolfSSL_get_ciphersuite_info
1495514962*/
14956- void wolfSSL_get_sigalg_info (byte first , byte second ,
14963+ int wolfSSL_get_sigalg_info (byte first , byte second ,
1495714964 int * hashAlgo , int * sigAlgo );
0 commit comments