diff options
author | tb <> | 2018-05-12 18:51:59 +0000 |
---|---|---|
committer | tb <> | 2018-05-12 18:51:59 +0000 |
commit | 79813f3abca6cad2f925122889a740ad8d016c5b (patch) | |
tree | 5f970340a82f0750b045fd9489efa2e59be63789 /src/lib/libcrypto/bio/bio.h | |
parent | d179dae307ac7f37cfdcb0967d16dd7186146e55 (diff) | |
download | openbsd-79813f3abca6cad2f925122889a740ad8d016c5b.tar.gz openbsd-79813f3abca6cad2f925122889a740ad8d016c5b.tar.bz2 openbsd-79813f3abca6cad2f925122889a740ad8d016c5b.zip |
const qualifiers for BIO_new_mem_buf(), BIO_new_connect() and
BIO_new_accept(). The one for BIO_new_mem_buf() is a bit ugly
since it needs to cast away the newly added const qualifier,
as in OpenSSL commit 8ab31975bac.
ok jsing
Diffstat (limited to 'src/lib/libcrypto/bio/bio.h')
-rw-r--r-- | src/lib/libcrypto/bio/bio.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/bio/bio.h b/src/lib/libcrypto/bio/bio.h index 678155c34e..105d3ff3af 100644 --- a/src/lib/libcrypto/bio/bio.h +++ b/src/lib/libcrypto/bio/bio.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bio.h,v 1.42 2018/05/12 17:47:53 tb Exp $ */ | 1 | /* $OpenBSD: bio.h,v 1.43 2018/05/12 18:51:59 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 | * |
@@ -642,7 +642,7 @@ long BIO_debug_callback(BIO *bio, int cmd, const char *argp, int argi, | |||
642 | long argl, long ret); | 642 | long argl, long ret); |
643 | 643 | ||
644 | const BIO_METHOD *BIO_s_mem(void); | 644 | const BIO_METHOD *BIO_s_mem(void); |
645 | BIO *BIO_new_mem_buf(void *buf, int len); | 645 | BIO *BIO_new_mem_buf(const void *buf, int len); |
646 | const BIO_METHOD *BIO_s_socket(void); | 646 | const BIO_METHOD *BIO_s_socket(void); |
647 | const BIO_METHOD *BIO_s_connect(void); | 647 | const BIO_METHOD *BIO_s_connect(void); |
648 | const BIO_METHOD *BIO_s_accept(void); | 648 | const BIO_METHOD *BIO_s_accept(void); |
@@ -698,8 +698,8 @@ int BIO_set_tcp_ndelay(int sock, int turn_on); | |||
698 | BIO *BIO_new_socket(int sock, int close_flag); | 698 | BIO *BIO_new_socket(int sock, int close_flag); |
699 | BIO *BIO_new_dgram(int fd, int close_flag); | 699 | BIO *BIO_new_dgram(int fd, int close_flag); |
700 | BIO *BIO_new_fd(int fd, int close_flag); | 700 | BIO *BIO_new_fd(int fd, int close_flag); |
701 | BIO *BIO_new_connect(char *host_port); | 701 | BIO *BIO_new_connect(const char *host_port); |
702 | BIO *BIO_new_accept(char *host_port); | 702 | BIO *BIO_new_accept(const char *host_port); |
703 | 703 | ||
704 | int | 704 | int |
705 | BIO_new_bio_pair(BIO **bio1, size_t writebuf1, | 705 | BIO_new_bio_pair(BIO **bio1, size_t writebuf1, |