diff options
author | tb <> | 2018-04-25 07:10:39 +0000 |
---|---|---|
committer | tb <> | 2018-04-25 07:10:39 +0000 |
commit | 7a58116b9a7e5669a2dd3926f53fafdaa1d8ec1e (patch) | |
tree | af0d93a255d15bc29d3b427a91bfc08513163ac5 /src/lib/libssl/ssl_lib.c | |
parent | 1050fac1647b143f03ecfdf7cf1a88d71cf4d1c2 (diff) | |
download | openbsd-7a58116b9a7e5669a2dd3926f53fafdaa1d8ec1e.tar.gz openbsd-7a58116b9a7e5669a2dd3926f53fafdaa1d8ec1e.tar.bz2 openbsd-7a58116b9a7e5669a2dd3926f53fafdaa1d8ec1e.zip |
OpenSSL started adding const to functions all over the place. Make all
our libssl functions match theirs wrt const, except for BIO_f_ssl(3)
which will be fixed in a later step.
this went through a i386 bulk by sthen
ok jsing
Diffstat (limited to 'src/lib/libssl/ssl_lib.c')
-rw-r--r-- | src/lib/libssl/ssl_lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/ssl_lib.c b/src/lib/libssl/ssl_lib.c index 5cae53041d..4f1eb5bf0a 100644 --- a/src/lib/libssl/ssl_lib.c +++ b/src/lib/libssl/ssl_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_lib.c,v 1.184 2018/04/14 07:09:21 tb Exp $ */ | 1 | /* $OpenBSD: ssl_lib.c,v 1.185 2018/04/25 07:10:39 tb 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 | * |
@@ -2654,7 +2654,7 @@ SSL_get_certificate(const SSL *s) | |||
2654 | 2654 | ||
2655 | /* Fix this function so that it takes an optional type parameter */ | 2655 | /* Fix this function so that it takes an optional type parameter */ |
2656 | EVP_PKEY * | 2656 | EVP_PKEY * |
2657 | SSL_get_privatekey(SSL *s) | 2657 | SSL_get_privatekey(const SSL *s) |
2658 | { | 2658 | { |
2659 | if (s->cert != NULL) | 2659 | if (s->cert != NULL) |
2660 | return (s->cert->key->privatekey); | 2660 | return (s->cert->key->privatekey); |