Lines Matching defs:key
129 unsigned char *key;
161 /* convert the PSK key to binary */
162 key = OPENSSL_hexstr2buf(psk_key, &key_len);
163 if (key == NULL) {
164 BIO_printf(bio_err, "Could not convert PSK key '%s' to buffer\n",
170 "psk buffer of callback is too small (%d) for key (%ld)\n",
172 OPENSSL_free(key);
176 memcpy(psk, key, key_len);
177 OPENSSL_free(key);
195 unsigned char *key;
211 key = OPENSSL_hexstr2buf(psk_key, &key_len);
212 if (key == NULL) {
213 BIO_printf(bio_err, "Could not convert PSK key '%s' to buffer\n",
222 OPENSSL_free(key);
228 || !SSL_SESSION_set1_master_key(tmpsess, key, key_len)
231 OPENSSL_free(key);
235 OPENSSL_free(key);
778 {"key", OPT_KEY, 's',
779 "Private key file to use; default is -cert file or else" TEST_CERT},
783 {"pass", OPT_PASS, 's', "Private key and cert file pass phrase source"},
791 "Second private key file to use (usually for DSA)"},
793 "Second key file format (ENGINE, other values ignored)"},
795 "Second private key and cert file pass phrase source"},
952 "Offer SRTP key management with a colon-separated profile list"},
1727 "server certificate private key");
1744 "second server certificate private key");
1789 0, dpass, engine, "second certificate private key");
2117 BIO_printf(bio_s_out, "PSK key given, setting server callback\n");
3008 exportedkeymat = app_malloc(keymatexportlen, "export key");