summaryrefslogtreecommitdiffstats
path: root/crypto/bio/bio_err.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2017-04-20 10:51:55 +0200
committerMatt Caswell <matt@openssl.org>2017-04-25 12:13:39 +0200
commit5114d8227e0516fffc0c8653f5118290709f6494 (patch)
treee5626dd44bfe76607fc068314b7dc12fa977b780 /crypto/bio/bio_err.c
parentFix typo in OPENSSL_LH_new compat API (diff)
downloadopenssl-5114d8227e0516fffc0c8653f5118290709f6494.tar.xz
openssl-5114d8227e0516fffc0c8653f5118290709f6494.zip
Add a BIO_lookup_ex() function
The existing BIO_lookup() wraps a call to getaddrinfo and provides an abstracted capability to lookup addresses based on socket type and family. However it provides no ability to lookup based on protocol. Normally, when dealing with TCP/UDP this is not required. However getaddrinfo (at least on linux) never returns SCTP addresses unless you specifically ask for them in the protocol field. Therefore BIO_lookup_ex() is added which provides the protocol field. Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3286)
Diffstat (limited to 'crypto/bio/bio_err.c')
-rw-r--r--crypto/bio/bio_err.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/bio/bio_err.c b/crypto/bio/bio_err.c
index b8cb1ebf13..c49a934095 100644
--- a/crypto/bio/bio_err.c
+++ b/crypto/bio/bio_err.c
@@ -1,6 +1,6 @@
/*
* Generated by util/mkerr.pl DO NOT EDIT
- * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
@@ -33,6 +33,7 @@ static ERR_STRING_DATA BIO_str_functs[] = {
{ERR_FUNC(BIO_F_BIO_GET_PORT), "BIO_get_port"},
{ERR_FUNC(BIO_F_BIO_LISTEN), "BIO_listen"},
{ERR_FUNC(BIO_F_BIO_LOOKUP), "BIO_lookup"},
+ {ERR_FUNC(BIO_F_BIO_LOOKUP_EX), "BIO_lookup_ex"},
{ERR_FUNC(BIO_F_BIO_MAKE_PAIR), "bio_make_pair"},
{ERR_FUNC(BIO_F_BIO_NEW), "BIO_new"},
{ERR_FUNC(BIO_F_BIO_NEW_FILE), "BIO_new_file"},