Lines Matching defs:identity
124 static unsigned int psk_server_cb(SSL *ssl, const char *identity,
144 if (identity == NULL) {
145 BIO_printf(bio_err, "Error: client did not send PSK identity\n");
149 BIO_printf(bio_s_out, "identity_len=%d identity=%s\n",
150 (int)strlen(identity), identity);
152 /* here we could lookup the given identity e.g. from a database */
153 if (strcmp(identity, psk_identity) != 0) {
154 BIO_printf(bio_s_out, "PSK warning: client identity not what we expected"
155 " (got '%s' expected '%s')\n", identity, psk_identity);
158 BIO_printf(bio_s_out, "PSK client identity found\n");
191 static int psk_find_session_cb(SSL *ssl, const unsigned char *identity,
200 || memcmp(psk_identity, identity, identity_len) != 0) {
893 OPT_SECTION("Server identity"),
894 {"psk_identity", OPT_PSK_IDENTITY, 's', "PSK identity to expect"},
896 {"psk_hint", OPT_PSK_HINT, 's', "PSK identity hint to use"},
1025 /* by default do not send a PSK identity hint */
2123 BIO_printf(bio_s_out, "PSK warning: there is NO identity hint in TLSv1.3\n");
2126 BIO_printf(bio_err, "error setting PSK identity hint to context\n");