diff options
| author | beck <> | 2020-01-22 07:49:33 +0000 |
|---|---|---|
| committer | beck <> | 2020-01-22 07:49:33 +0000 |
| commit | a51d351bce20a83e3ca3ca7f6b906a3cabb79ee2 (patch) | |
| tree | 159f1444e3e7606236feaa585c26004177bae43d | |
| parent | 00fdbbfa87e47bc65693fde07da45f941d7a79e8 (diff) | |
| download | openbsd-a51d351bce20a83e3ca3ca7f6b906a3cabb79ee2.tar.gz openbsd-a51d351bce20a83e3ca3ca7f6b906a3cabb79ee2.tar.bz2 openbsd-a51d351bce20a83e3ca3ca7f6b906a3cabb79ee2.zip | |
Move guards from public to internal headers, and fix not use values.
reverts previous attempt which would have broken ports
ok jsing@
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libssl/ssl.h | 8 | ||||
| -rw-r--r-- | src/lib/libssl/ssl_locl.h | 7 |
2 files changed, 7 insertions, 8 deletions
diff --git a/src/lib/libssl/ssl.h b/src/lib/libssl/ssl.h index 012556fa71..39aa25356c 100644 --- a/src/lib/libssl/ssl.h +++ b/src/lib/libssl/ssl.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ssl.h,v 1.169 2020/01/22 01:21:43 jsing Exp $ */ | 1 | /* $OpenBSD: ssl.h,v 1.170 2020/01/22 07:49:33 beck Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -167,12 +167,6 @@ | |||
| 167 | extern "C" { | 167 | extern "C" { |
| 168 | #endif | 168 | #endif |
| 169 | 169 | ||
| 170 | #if defined(LIBRESSL_HAS_TLS1_3_CLIENT) || defined(LIBRESSL_HAS_TLS1_3_SERVER) | ||
| 171 | #define LIBRESSL_HAS_TLS1_3 1 | ||
| 172 | #else | ||
| 173 | #define LIBRESSL_HAS_TLS1_3 0 | ||
| 174 | #endif | ||
| 175 | |||
| 176 | /* SSLeay version number for ASN.1 encoding of the session information */ | 170 | /* SSLeay version number for ASN.1 encoding of the session information */ |
| 177 | /* Version 0 - initial version | 171 | /* Version 0 - initial version |
| 178 | * Version 1 - added the optional peer certificate | 172 | * Version 1 - added the optional peer certificate |
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h index f9c75f8a7f..6016b4f984 100644 --- a/src/lib/libssl/ssl_locl.h +++ b/src/lib/libssl/ssl_locl.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ssl_locl.h,v 1.248 2019/11/17 19:07:07 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_locl.h,v 1.249 2020/01/22 07:49:33 beck Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -186,6 +186,11 @@ __BEGIN_HIDDEN_DECLS | |||
| 186 | #define s2n(s,c) ((c[0]=(unsigned char)(((s)>> 8)&0xff), \ | 186 | #define s2n(s,c) ((c[0]=(unsigned char)(((s)>> 8)&0xff), \ |
| 187 | c[1]=(unsigned char)(((s) )&0xff)),c+=2) | 187 | c[1]=(unsigned char)(((s) )&0xff)),c+=2) |
| 188 | 188 | ||
| 189 | /* #define LIBRESSL_HAS_TLS1_3_CLIENT */ | ||
| 190 | #if defined(LIBRESSL_HAS_TLS1_3_CLIENT) || defined(LIBRESSL_HAS_TLS1_3_SERVER) | ||
| 191 | #define LIBRESSL_HAS_TLS1_3 | ||
| 192 | #endif | ||
| 193 | |||
| 189 | /* LOCAL STUFF */ | 194 | /* LOCAL STUFF */ |
| 190 | 195 | ||
| 191 | #define SSL_DECRYPT 0 | 196 | #define SSL_DECRYPT 0 |
