Lines Matching defs:identity
352 static unsigned int psk_server_cb(SSL *ssl, const char *identity,
362 if (!identity) {
363 BIO_printf(bio_err, "Error: client did not send PSK identity\n");
367 BIO_printf(bio_s_out, "identity_len=%d identity=%s\n",
368 (int)strlen(identity), identity);
370 /* here we could lookup the given identity e.g. from a database */
371 if (strcmp(identity, psk_identity) != 0) {
372 BIO_printf(bio_s_out, "PSK error: client identity not found"
373 " (got '%s' expected '%s')\n", identity, psk_identity);
377 BIO_printf(bio_s_out, "PSK client identity found\n");
590 BIO_printf(bio_err, " -psk_hint arg - PSK identity hint to use\n");
1132 /* by default do not send a PSK identity hint */
1995 BIO_printf(bio_err, "error setting PSK identity hint to context\n");