src/wolfSSL/src/internal.c
int VerifyClientSuite(WOLFSSL* ssl)
    {
        int  havePSK = 0;
        byte first   = ssl->options.cipherSuite0;
        byte second  = ssl->options.cipherSuite;

        WOLFSSL_ENTER("VerifyClientSuite");

        #ifndef NO_PSK
            havePSK = ssl->options.havePSK;
        #endif

        if (CipherRequires(first, second, REQUIRES_PSK)) {
            WOLFSSL_MSG("Requires PSK");
            if (havePSK == 0) {
                WOLFSSL_MSG("Don't have PSK");
                return 0;
            }
        }

        return 1;  /* success */
    }
/* Make sure client setup is valid for this suite, true on success */
Make sure client setup is valid for this suite, true on success
Make sure client setup is valid for this suite true on success
int VerifyClientSuite(WOLFSSL* ssl)
    {
        int  havePSK = 0;
        byte first   = ssl->options.cipherSuite0;
        byte second  = ssl->options.cipherSuite;
        WOLFSSL_ENTER("VerifyClientSuite");
        #ifndef NO_PSK
            havePSK = ssl->options.havePSK;
        #endif
        if (CipherRequires(first, second, REQUIRES_PSK)) {
            WOLFSSL_MSG("Requires PSK");
            if (havePSK == 0) {
                WOLFSSL_MSG("Don't have PSK");
                return 0;
            }
        }
        return 1;  
    }
int VerifyClientSuite ( WOLFSSL * ssl ) { int havePSK = 0 ; byte first = ssl -> options . cipherSuite0 ; byte second = ssl -> options . cipherSuite ; WOLFSSL_ENTER ( " " ) ; #ifndef NO_PSK havePSK = ssl -> options . havePSK ; #endif if ( CipherRequires ( first , second , REQUIRES_PSK ) ) { WOLFSSL_MSG ( " " ) ; if ( havePSK == 0 ) { WOLFSSL_MSG ( " " ) ; return 0 ; } } return 1 ; }
Make sure client setup is valid for this suite, true on success
Make sure client setup is valid for this suite true on success
/* success */