mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
ossl_ssl.h: accessor macros
* ext/openssl/ossl_ssl.c (GetSSLCTX): accessor macro. * ext/openssl/ossl_ssl.h (GetSSL): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c420e58ff9
commit
0ae6db41ca
3 changed files with 32 additions and 24 deletions
|
@ -11,6 +11,10 @@
|
|||
#if !defined(_OSSL_SSL_H_)
|
||||
#define _OSSL_SSL_H_
|
||||
|
||||
#define GetSSL(obj, ssl) do { \
|
||||
Data_Get_Struct((obj), SSL, (ssl)); \
|
||||
} while (0)
|
||||
|
||||
#define GetSSLSession(obj, sess) do { \
|
||||
Data_Get_Struct((obj), SSL_SESSION, (sess)); \
|
||||
if (!(sess)) { \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue