Beispiel #1
0
static const SSL_METHOD *dtls1_get_method(int ver)
	{
	if (ver == DTLS1_VERSION)
		return(DTLSv1_method());
	else if (ver == DTLS1_2_VERSION)
		return(DTLSv1_2_method());
	else
		return(NULL);
	}
Beispiel #2
0
/*
 * DTLS methods
 */
static const SSL_METHOD *dtls1_get_method(int ver)
{
    if (ver == DTLS_ANY_VERSION)
        return DTLS_method();
    else if (ver == DTLS1_VERSION)
        return DTLSv1_method();
    else if (ver == DTLS1_2_VERSION)
        return DTLSv1_2_method();
    else
        return NULL;
}
Beispiel #3
0
const SSL_METHOD *DTLSv1_2_client_method(void) {
  return DTLSv1_2_method();
}
Beispiel #4
0
const SSL_METHOD *DTLSv1_2_server_method(void) {
  return DTLSv1_2_method();
}