mirror of
https://github.com/opnsense/src.git
synced 2026-06-07 15:52:40 -04:00
Summary: Release notes can be found at https://www.openssl.org/news/openssl-3.0-notes.html . Obtained from: https://www.openssl.org/source/openssl-3.0.8.tar.gz Differential Revision: https://reviews.freebsd.org/D38835 Test Plan: ``` $ git status On branch vendor/openssl-3.0 nothing to commit, working tree clean $ (cd ..; fetch http://www.openssl.org/source/openssl-${OSSLVER}.tar.gz http://www.openssl.org/source/openssl-${OSSLVER}.tar.gz.asc) openssl-3.0.8.tar.gz 14 MB 4507 kBps 04s openssl-3.0.8.tar.gz.asc 833 B 10 MBps 00s $ set | egrep '(XLIST|OSSLVER)=' OSSLVER=3.0.8 XLIST=FREEBSD-Xlist $ gpg --list-keys /home/ngie/.gnupg/pubring.kbx ----------------------------- pub rsa4096 2014-10-04 [SC] 7953AC1FBC3DC8B3B292393ED5E9E43F7DF9EE8C uid [ unknown] Richard Levitte <richard@levitte.org> uid [ unknown] Richard Levitte <levitte@lp.se> uid [ unknown] Richard Levitte <levitte@openssl.org> sub rsa4096 2014-10-04 [E] $ gpg --verify openssl-${OSSLVER}.tar.gz.asc openssl-${OSSLVER}.tar.gz gpg: Signature made Tue Feb 7 05:43:55 2023 PST gpg: using RSA key 7953AC1FBC3DC8B3B292393ED5E9E43F7DF9EE8C gpg: Good signature from "Richard Levitte <richard@levitte.org>" [unknown] gpg: aka "Richard Levitte <levitte@lp.se>" [unknown] gpg: aka "Richard Levitte <levitte@openssl.org>" [unknown] gpg: WARNING: This key is not certified with a trusted signature! gpg: There is no indication that the signature belongs to the owner. Primary key fingerprint: 7953 AC1F BC3D C8B3 B292 393E D5E9 E43F 7DF9 EE8C $ (cd vendor.checkout/; git status; find . -type f -or -type l | cut -c 3- | sort > ../old) On branch vendor/openssl-3.0 nothing to commit, working tree clean $ tar -x -X $XLIST -f ../openssl-${OSSLVER}.tar.gz -C .. $ rsync --exclude FREEBSD.* --delete -avzz ../openssl-${OSSLVER}/* . $ cat .git gitdir: /home/ngie/git/freebsd-src/.git/worktrees/vendor.checkout $ diff -arq ../openssl-3.0.8 . Only in .: .git Only in .: FREEBSD-Xlist Only in .: FREEBSD-upgrade $ git status FREEBSD* On branch vendor/openssl-3.0 nothing to commit, working tree clean $ ``` Reviewers: emaste, jkim Subscribers: imp, andrew, dab Differential Revision: https://reviews.freebsd.org/D38835
279 lines
8.7 KiB
C
279 lines
8.7 KiB
C
/*
|
|
* Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
|
|
*
|
|
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
* this file except in compliance with the License. You can obtain a copy
|
|
* in the file LICENSE in the source distribution or at
|
|
* https://www.openssl.org/source/license.html
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <openssl/macros.h>
|
|
#include <openssl/objects.h>
|
|
#include "ssl_local.h"
|
|
|
|
/*-
|
|
* TLS/SSLv3 methods
|
|
*/
|
|
|
|
IMPLEMENT_tls_meth_func(TLS_ANY_VERSION, 0, 0,
|
|
TLS_method,
|
|
ossl_statem_accept,
|
|
ossl_statem_connect, TLSv1_2_enc_data)
|
|
IMPLEMENT_tls_meth_func(TLS1_3_VERSION, 0, SSL_OP_NO_TLSv1_3,
|
|
tlsv1_3_method,
|
|
ossl_statem_accept,
|
|
ossl_statem_connect, TLSv1_3_enc_data)
|
|
#ifndef OPENSSL_NO_TLS1_2_METHOD
|
|
IMPLEMENT_tls_meth_func(TLS1_2_VERSION, 0, SSL_OP_NO_TLSv1_2,
|
|
tlsv1_2_method,
|
|
ossl_statem_accept,
|
|
ossl_statem_connect, TLSv1_2_enc_data)
|
|
#endif
|
|
#ifndef OPENSSL_NO_TLS1_1_METHOD
|
|
IMPLEMENT_tls_meth_func(TLS1_1_VERSION, SSL_METHOD_NO_SUITEB, SSL_OP_NO_TLSv1_1,
|
|
tlsv1_1_method,
|
|
ossl_statem_accept,
|
|
ossl_statem_connect, TLSv1_1_enc_data)
|
|
#endif
|
|
#ifndef OPENSSL_NO_TLS1_METHOD
|
|
IMPLEMENT_tls_meth_func(TLS1_VERSION, SSL_METHOD_NO_SUITEB, SSL_OP_NO_TLSv1,
|
|
tlsv1_method,
|
|
ossl_statem_accept, ossl_statem_connect, TLSv1_enc_data)
|
|
#endif
|
|
#ifndef OPENSSL_NO_SSL3_METHOD
|
|
IMPLEMENT_ssl3_meth_func(sslv3_method, ossl_statem_accept, ossl_statem_connect)
|
|
#endif
|
|
/*-
|
|
* TLS/SSLv3 server methods
|
|
*/
|
|
IMPLEMENT_tls_meth_func(TLS_ANY_VERSION, 0, 0,
|
|
TLS_server_method,
|
|
ossl_statem_accept,
|
|
ssl_undefined_function, TLSv1_2_enc_data)
|
|
IMPLEMENT_tls_meth_func(TLS1_3_VERSION, 0, SSL_OP_NO_TLSv1_3,
|
|
tlsv1_3_server_method,
|
|
ossl_statem_accept,
|
|
ssl_undefined_function, TLSv1_3_enc_data)
|
|
#ifndef OPENSSL_NO_TLS1_2_METHOD
|
|
IMPLEMENT_tls_meth_func(TLS1_2_VERSION, 0, SSL_OP_NO_TLSv1_2,
|
|
tlsv1_2_server_method,
|
|
ossl_statem_accept,
|
|
ssl_undefined_function, TLSv1_2_enc_data)
|
|
#endif
|
|
#ifndef OPENSSL_NO_TLS1_1_METHOD
|
|
IMPLEMENT_tls_meth_func(TLS1_1_VERSION, SSL_METHOD_NO_SUITEB, SSL_OP_NO_TLSv1_1,
|
|
tlsv1_1_server_method,
|
|
ossl_statem_accept,
|
|
ssl_undefined_function, TLSv1_1_enc_data)
|
|
#endif
|
|
#ifndef OPENSSL_NO_TLS1_METHOD
|
|
IMPLEMENT_tls_meth_func(TLS1_VERSION, SSL_METHOD_NO_SUITEB, SSL_OP_NO_TLSv1,
|
|
tlsv1_server_method,
|
|
ossl_statem_accept,
|
|
ssl_undefined_function, TLSv1_enc_data)
|
|
#endif
|
|
#ifndef OPENSSL_NO_SSL3_METHOD
|
|
IMPLEMENT_ssl3_meth_func(sslv3_server_method,
|
|
ossl_statem_accept, ssl_undefined_function)
|
|
#endif
|
|
/*-
|
|
* TLS/SSLv3 client methods
|
|
*/
|
|
IMPLEMENT_tls_meth_func(TLS_ANY_VERSION, 0, 0,
|
|
TLS_client_method,
|
|
ssl_undefined_function,
|
|
ossl_statem_connect, TLSv1_2_enc_data)
|
|
IMPLEMENT_tls_meth_func(TLS1_3_VERSION, 0, SSL_OP_NO_TLSv1_3,
|
|
tlsv1_3_client_method,
|
|
ssl_undefined_function,
|
|
ossl_statem_connect, TLSv1_3_enc_data)
|
|
#ifndef OPENSSL_NO_TLS1_2_METHOD
|
|
IMPLEMENT_tls_meth_func(TLS1_2_VERSION, 0, SSL_OP_NO_TLSv1_2,
|
|
tlsv1_2_client_method,
|
|
ssl_undefined_function,
|
|
ossl_statem_connect, TLSv1_2_enc_data)
|
|
#endif
|
|
#ifndef OPENSSL_NO_TLS1_1_METHOD
|
|
IMPLEMENT_tls_meth_func(TLS1_1_VERSION, SSL_METHOD_NO_SUITEB, SSL_OP_NO_TLSv1_1,
|
|
tlsv1_1_client_method,
|
|
ssl_undefined_function,
|
|
ossl_statem_connect, TLSv1_1_enc_data)
|
|
#endif
|
|
#ifndef OPENSSL_NO_TLS1_METHOD
|
|
IMPLEMENT_tls_meth_func(TLS1_VERSION, SSL_METHOD_NO_SUITEB, SSL_OP_NO_TLSv1,
|
|
tlsv1_client_method,
|
|
ssl_undefined_function,
|
|
ossl_statem_connect, TLSv1_enc_data)
|
|
#endif
|
|
#ifndef OPENSSL_NO_SSL3_METHOD
|
|
IMPLEMENT_ssl3_meth_func(sslv3_client_method,
|
|
ssl_undefined_function, ossl_statem_connect)
|
|
#endif
|
|
/*-
|
|
* DTLS methods
|
|
*/
|
|
#ifndef OPENSSL_NO_DTLS1_METHOD
|
|
IMPLEMENT_dtls1_meth_func(DTLS1_VERSION, SSL_METHOD_NO_SUITEB, SSL_OP_NO_DTLSv1,
|
|
dtlsv1_method,
|
|
ossl_statem_accept,
|
|
ossl_statem_connect, DTLSv1_enc_data)
|
|
#endif
|
|
#ifndef OPENSSL_NO_DTLS1_2_METHOD
|
|
IMPLEMENT_dtls1_meth_func(DTLS1_2_VERSION, 0, SSL_OP_NO_DTLSv1_2,
|
|
dtlsv1_2_method,
|
|
ossl_statem_accept,
|
|
ossl_statem_connect, DTLSv1_2_enc_data)
|
|
#endif
|
|
IMPLEMENT_dtls1_meth_func(DTLS_ANY_VERSION, 0, 0,
|
|
DTLS_method,
|
|
ossl_statem_accept,
|
|
ossl_statem_connect, DTLSv1_2_enc_data)
|
|
|
|
/*-
|
|
* DTLS server methods
|
|
*/
|
|
#ifndef OPENSSL_NO_DTLS1_METHOD
|
|
IMPLEMENT_dtls1_meth_func(DTLS1_VERSION, SSL_METHOD_NO_SUITEB, SSL_OP_NO_DTLSv1,
|
|
dtlsv1_server_method,
|
|
ossl_statem_accept,
|
|
ssl_undefined_function, DTLSv1_enc_data)
|
|
#endif
|
|
#ifndef OPENSSL_NO_DTLS1_2_METHOD
|
|
IMPLEMENT_dtls1_meth_func(DTLS1_2_VERSION, 0, SSL_OP_NO_DTLSv1_2,
|
|
dtlsv1_2_server_method,
|
|
ossl_statem_accept,
|
|
ssl_undefined_function, DTLSv1_2_enc_data)
|
|
#endif
|
|
IMPLEMENT_dtls1_meth_func(DTLS_ANY_VERSION, 0, 0,
|
|
DTLS_server_method,
|
|
ossl_statem_accept,
|
|
ssl_undefined_function, DTLSv1_2_enc_data)
|
|
|
|
/*-
|
|
* DTLS client methods
|
|
*/
|
|
#ifndef OPENSSL_NO_DTLS1_METHOD
|
|
IMPLEMENT_dtls1_meth_func(DTLS1_VERSION, SSL_METHOD_NO_SUITEB, SSL_OP_NO_DTLSv1,
|
|
dtlsv1_client_method,
|
|
ssl_undefined_function,
|
|
ossl_statem_connect, DTLSv1_enc_data)
|
|
IMPLEMENT_dtls1_meth_func(DTLS1_BAD_VER, SSL_METHOD_NO_SUITEB, SSL_OP_NO_DTLSv1,
|
|
dtls_bad_ver_client_method,
|
|
ssl_undefined_function,
|
|
ossl_statem_connect, DTLSv1_enc_data)
|
|
#endif
|
|
#ifndef OPENSSL_NO_DTLS1_2_METHOD
|
|
IMPLEMENT_dtls1_meth_func(DTLS1_2_VERSION, 0, SSL_OP_NO_DTLSv1_2,
|
|
dtlsv1_2_client_method,
|
|
ssl_undefined_function,
|
|
ossl_statem_connect, DTLSv1_2_enc_data)
|
|
#endif
|
|
IMPLEMENT_dtls1_meth_func(DTLS_ANY_VERSION, 0, 0,
|
|
DTLS_client_method,
|
|
ssl_undefined_function,
|
|
ossl_statem_connect, DTLSv1_2_enc_data)
|
|
#ifndef OPENSSL_NO_DEPRECATED_1_1_0
|
|
# ifndef OPENSSL_NO_TLS1_2_METHOD
|
|
const SSL_METHOD *TLSv1_2_method(void)
|
|
{
|
|
return tlsv1_2_method();
|
|
}
|
|
|
|
const SSL_METHOD *TLSv1_2_server_method(void)
|
|
{
|
|
return tlsv1_2_server_method();
|
|
}
|
|
|
|
const SSL_METHOD *TLSv1_2_client_method(void)
|
|
{
|
|
return tlsv1_2_client_method();
|
|
}
|
|
# endif
|
|
|
|
# ifndef OPENSSL_NO_TLS1_1_METHOD
|
|
const SSL_METHOD *TLSv1_1_method(void)
|
|
{
|
|
return tlsv1_1_method();
|
|
}
|
|
|
|
const SSL_METHOD *TLSv1_1_server_method(void)
|
|
{
|
|
return tlsv1_1_server_method();
|
|
}
|
|
|
|
const SSL_METHOD *TLSv1_1_client_method(void)
|
|
{
|
|
return tlsv1_1_client_method();
|
|
}
|
|
# endif
|
|
|
|
# ifndef OPENSSL_NO_TLS1_METHOD
|
|
const SSL_METHOD *TLSv1_method(void)
|
|
{
|
|
return tlsv1_method();
|
|
}
|
|
|
|
const SSL_METHOD *TLSv1_server_method(void)
|
|
{
|
|
return tlsv1_server_method();
|
|
}
|
|
|
|
const SSL_METHOD *TLSv1_client_method(void)
|
|
{
|
|
return tlsv1_client_method();
|
|
}
|
|
# endif
|
|
|
|
# ifndef OPENSSL_NO_SSL3_METHOD
|
|
const SSL_METHOD *SSLv3_method(void)
|
|
{
|
|
return sslv3_method();
|
|
}
|
|
|
|
const SSL_METHOD *SSLv3_server_method(void)
|
|
{
|
|
return sslv3_server_method();
|
|
}
|
|
|
|
const SSL_METHOD *SSLv3_client_method(void)
|
|
{
|
|
return sslv3_client_method();
|
|
}
|
|
# endif
|
|
|
|
# ifndef OPENSSL_NO_DTLS1_2_METHOD
|
|
const SSL_METHOD *DTLSv1_2_method(void)
|
|
{
|
|
return dtlsv1_2_method();
|
|
}
|
|
|
|
const SSL_METHOD *DTLSv1_2_server_method(void)
|
|
{
|
|
return dtlsv1_2_server_method();
|
|
}
|
|
|
|
const SSL_METHOD *DTLSv1_2_client_method(void)
|
|
{
|
|
return dtlsv1_2_client_method();
|
|
}
|
|
# endif
|
|
|
|
# ifndef OPENSSL_NO_DTLS1_METHOD
|
|
const SSL_METHOD *DTLSv1_method(void)
|
|
{
|
|
return dtlsv1_method();
|
|
}
|
|
|
|
const SSL_METHOD *DTLSv1_server_method(void)
|
|
{
|
|
return dtlsv1_server_method();
|
|
}
|
|
|
|
const SSL_METHOD *DTLSv1_client_method(void)
|
|
{
|
|
return dtlsv1_client_method();
|
|
}
|
|
# endif
|
|
|
|
#endif
|