Lines Matching full:psk
124 * Nokia Corporation, consists of the "PSK" (Pre-Shared Key) ciphersuites
240 static char *psk_key=NULL; /* by default PSK is not used */
243 unsigned int max_identity_len, unsigned char *psk,
245 static unsigned int psk_server_callback(SSL *ssl, const char *identity, unsigned char *psk,
290 fprintf(stderr," -psk arg - PSK in hex (without 0x)\n");
568 else if (strcmp(*argv,"-psk") == 0)
960 /* Use PSK only if PSK key is given */
963 /* no_psk is used to avoid putting psk command to openssl tool */
966 /* if PSK is not compiled in and psk key is
975 BIO_printf(bio_err,"setting PSK identity hint to s_ctx\n");
978 BIO_printf(bio_err,"error setting PSK identity hint to s_ctx\n");
2386 /* convert the PSK key (psk_key) in ascii to binary (psk) */
2387 static int psk_key2bn(const char *pskkey, unsigned char *psk,
2396 BIO_printf(bio_err,"Could not convert PSK key '%s' to BIGNUM\n", pskkey);
2403 BIO_printf(bio_err,"psk buffer of callback is too small (%d) for key (%d)\n",
2408 ret = BN_bn2bin(bn, psk);
2414 unsigned int max_identity_len, unsigned char *psk,
2425 ret = psk_key2bn(psk_key, psk, max_psk_len);
2434 unsigned char *psk, unsigned int max_psk_len)
2440 BIO_printf(bio_err, "server: PSK error: client identity not found\n");
2443 psk_len=psk_key2bn(psk_key, psk, max_psk_len);