X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Ftls.c;fp=src%2Fmain%2Ftls.c;h=94597d77e98fcab0a6c40e127a34c355efb87a0f;hb=06108a48744af35376221816f2ccb0819557156c;hp=d00eaeba5355ed345d1789ce36f923e824bbadca;hpb=13e600f390d9170f15a3eeb979ecf50f3104db51;p=freeradius.git diff --git a/src/main/tls.c b/src/main/tls.c index d00eaeb..94597d7 100644 --- a/src/main/tls.c +++ b/src/main/tls.c @@ -2197,19 +2197,6 @@ SSL_CTX *tls_init_ctx(fr_tls_server_conf_t *conf, int client) return NULL; } - /* - * There are two ways PSKs can be configured for a server. The - * first is the same as a client: psk_identity and - * psk_hexphrase. The second is to dynamically configure PSKs - * and to have the psk_xlat return them. The second is - * compatible with certificates; either the PSK or cert will - * be used depending on what the client uses. - */ - if (!client) - SSL_CTX_set_psk_server_callback(ctx, - psk_server_callback); - - if (conf->psk_identity) { size_t psk_len, hex_len; uint8_t buffer[PSK_MAX_PSK_LEN];