diff options
author | jsing <> | 2017-05-06 20:59:28 +0000 |
---|---|---|
committer | jsing <> | 2017-05-06 20:59:28 +0000 |
commit | 7d324d6b4a253e59f811b823131fa480dca49d94 (patch) | |
tree | 657a8c245abd0d5e2045521716d7977e1dfe887f /src/lib/libtls/tls_internal.h | |
parent | e09c50ecb0edf1f7c4f6a7b1dee1285ccbf08d5a (diff) | |
download | openbsd-7d324d6b4a253e59f811b823131fa480dca49d94.tar.gz openbsd-7d324d6b4a253e59f811b823131fa480dca49d94.tar.bz2 openbsd-7d324d6b4a253e59f811b823131fa480dca49d94.zip |
Perform reference counting for tls_config. This allows tls_config_free() to
be called as soon as it has been passed to the final tls_configure() call,
simplifying lifetime tracking for the application.
Requested some time ago by tedu@.
ok beck@
Diffstat (limited to 'src/lib/libtls/tls_internal.h')
-rw-r--r-- | src/lib/libtls/tls_internal.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libtls/tls_internal.h b/src/lib/libtls/tls_internal.h index 0c8e8c1d21..ba007a6714 100644 --- a/src/lib/libtls/tls_internal.h +++ b/src/lib/libtls/tls_internal.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls_internal.h,v 1.58 2017/05/04 11:31:45 claudio Exp $ */ | 1 | /* $OpenBSD: tls_internal.h,v 1.59 2017/05/06 20:59:28 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014 Jeremie Courreges-Anglas <jca@openbsd.org> | 3 | * Copyright (c) 2014 Jeremie Courreges-Anglas <jca@openbsd.org> |
4 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> | 4 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> |
@@ -75,6 +75,8 @@ struct tls_ticket_key { | |||
75 | struct tls_config { | 75 | struct tls_config { |
76 | struct tls_error error; | 76 | struct tls_error error; |
77 | 77 | ||
78 | int refcount; | ||
79 | |||
78 | char *alpn; | 80 | char *alpn; |
79 | size_t alpn_len; | 81 | size_t alpn_len; |
80 | const char *ca_path; | 82 | const char *ca_path; |