FreeRTOS-Plus/ThirdParty/WolfSSL-FIPS-Ready/src/sniffer.c
/* Sets the private key for a specific server and port  */
/* returns 0 on success, -1 on error */
Sets the private key for a specific server and port
returns 0 on success, -1 on error
Sets the private key for a specific server and port returns 0 on success - 1 on error
int ssl_SetPrivateKey(const char* address, int port, 
                      const char* keyFile, int typeKey, 
                      const char* password, char* error)
{
    int ret;
    TraceHeader();
    TraceSetServer(address, port, keyFile);
    wc_LockMutex(&ServerListMutex);
    ret = SetNamedPrivateKey(NULL, address, port, keyFile, 0,
                             typeKey, password, error, 0);
    wc_UnLockMutex(&ServerListMutex);
    if (ret == 0)
        Trace(NEW_SERVER_STR);
    return ret;
}
int ssl_SetPrivateKey ( const char * address , int port , const char * keyFile , int typeKey , const char * password , char * error ) { int ret ; TraceHeader ( ) ; TraceSetServer ( address , port , keyFile ) ; wc_LockMutex ( & ServerListMutex ) ; ret = SetNamedPrivateKey ( NULL , address , port , keyFile , 0 , typeKey , password , error , 0 ) ; wc_UnLockMutex ( & ServerListMutex ) ; if ( ret == 0 ) Trace ( NEW_SERVER_STR ) ; return ret ; }
Sets the private key for a specific server and port
returns 0 on success, -1 on error
Sets the private key for a specific server and port returns 0 on success - 1 on error