diff options
author | 2016-11-04 18:28:57 +0000 | |
---|---|---|
committer | 2016-11-04 18:28:57 +0000 | |
commit | a9f45c63c80b0ab8b60c740ad99abefe7e501cb0 (patch) | |
tree | 8ed9907121f41e90735533ee075f99538296cf76 /lib/libssl/bytestring.h | |
parent | Add an explict list of exported symbols with just the functions declared (diff) | |
download | wireguard-openbsd-a9f45c63c80b0ab8b60c740ad99abefe7e501cb0.tar.xz wireguard-openbsd-a9f45c63c80b0ab8b60c740ad99abefe7e501cb0.zip |
Add an explict list of exported symbols with just the functions
declared in the public headers, and use __{BEGIN,END}_HIDDEN_DECLS
in the internal headers to optimize internal functions
ok jsing@
Diffstat (limited to 'lib/libssl/bytestring.h')
-rw-r--r-- | lib/libssl/bytestring.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/libssl/bytestring.h b/lib/libssl/bytestring.h index 8ea84005b49..d8c8e6ada6d 100644 --- a/lib/libssl/bytestring.h +++ b/lib/libssl/bytestring.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bytestring.h,v 1.14 2015/06/19 00:23:36 doug Exp $ */ +/* $OpenBSD: bytestring.h,v 1.15 2016/11/04 18:28:58 guenther Exp $ */ /* * Copyright (c) 2014, Google Inc. * @@ -17,15 +17,13 @@ #ifndef OPENSSL_HEADER_BYTESTRING_H #define OPENSSL_HEADER_BYTESTRING_H -#if defined(__cplusplus) -extern "C" { -#endif - #include <sys/types.h> #include <stdint.h> #include <openssl/opensslconf.h> +__BEGIN_HIDDEN_DECLS + /* * Bytestrings are used for parsing and building TLS and ASN.1 messages. * @@ -504,8 +502,6 @@ int cbs_get_any_asn1_element_internal(CBS *cbs, CBS *out, unsigned int *out_tag, int CBS_asn1_indefinite_to_definite(CBS *in, uint8_t **out, size_t *out_len); #endif /* LIBRESSL_INTERNAL */ -#if defined(__cplusplus) -} /* extern C */ -#endif +__END_HIDDEN_DECLS #endif /* OPENSSL_HEADER_BYTESTRING_H */ |