Home
last modified time | relevance | path

Searched refs:psk_identity (Results 1 – 6 of 6) sorted by relevance

/net-tools-3.5.0/mbedtls-2.4.0/programs/ssl/
Dssl_client2.c293 const char *psk_identity; /* the pre-shared key identity */ member
484 opt.psk_identity = DFL_PSK_IDENTITY; in main()
573 opt.psk_identity = q; in main()
1190 (const unsigned char *) opt.psk_identity, in main()
1191 strlen( opt.psk_identity ) ) ) != 0 ) in main()
Dssl_server2.c371 const char *psk_identity; /* the pre-shared key identity */ member
914 opt.psk_identity = DFL_PSK_IDENTITY; in main()
999 opt.psk_identity = q; in main()
1791 if( strlen( opt.psk ) != 0 && strlen( opt.psk_identity ) != 0 ) in main()
1794 (const unsigned char *) opt.psk_identity, in main()
1795 strlen( opt.psk_identity ) ); in main()
/net-tools-3.5.0/mbedtls-2.4.0/include/mbedtls/
Dssl.h673 unsigned char *psk_identity; /*!< identity for PSK negotiation */ member
1643 const unsigned char *psk_identity, size_t psk_identity_len );
/net-tools-3.5.0/mbedtls-2.4.0/library/
Dssl_tls.c5824 const unsigned char *psk_identity, size_t psk_identity_len ) in mbedtls_ssl_conf_psk() argument
5826 if( psk == NULL || psk_identity == NULL ) in mbedtls_ssl_conf_psk()
5839 if( conf->psk != NULL || conf->psk_identity != NULL ) in mbedtls_ssl_conf_psk()
5842 mbedtls_free( conf->psk_identity ); in mbedtls_ssl_conf_psk()
5844 conf->psk_identity = NULL; in mbedtls_ssl_conf_psk()
5848 ( conf->psk_identity = mbedtls_calloc( 1, psk_identity_len ) ) == NULL ) in mbedtls_ssl_conf_psk()
5851 mbedtls_free( conf->psk_identity ); in mbedtls_ssl_conf_psk()
5853 conf->psk_identity = NULL; in mbedtls_ssl_conf_psk()
5861 memcpy( conf->psk_identity, psk_identity, conf->psk_identity_len ); in mbedtls_ssl_conf_psk()
7336 mbedtls_zeroize( conf->psk_identity, conf->psk_identity_len ); in mbedtls_ssl_config_free()
[all …]
Dssl_srv.c771 ( ssl->conf->psk == NULL || ssl->conf->psk_identity == NULL || in ssl_ciphersuite_match()
3216 ( ssl->conf->psk == NULL || ssl->conf->psk_identity == NULL ||
3251 mbedtls_ssl_safer_memcmp( ssl->conf->psk_identity, *p, n ) != 0 )
Dssl_cli.c2825 if( ssl->conf->psk == NULL || ssl->conf->psk_identity == NULL )
2844 memcpy( ssl->out_msg + i, ssl->conf->psk_identity, ssl->conf->psk_identity_len );