Ruby 2.0.0p353(2013-11-22revision43784)

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

ossl_ssl.h
Go to the documentation of this file.
1 /*
2 * $Id: ossl_ssl.h 31087 2011-03-10 13:28:58Z akr $
3 * 'OpenSSL for Ruby' project
4 * Copyright (C) 2001-2002 Michal Rokos <m.rokos@sh.cvut.cz>
5 * All rights reserved.
6 */
7 /*
8 * This program is licenced under the same licence as Ruby.
9 * (See the file 'LICENCE'.)
10 */
11 #if !defined(_OSSL_SSL_H_)
12 #define _OSSL_SSL_H_
13
14 #define GetSSLSession(obj, sess) do { \
15 Data_Get_Struct((obj), SSL_SESSION, (sess)); \
16 if (!(sess)) { \
17 ossl_raise(rb_eRuntimeError, "SSL Session wasn't initialized."); \
18 } \
19 } while (0)
20
21 #define SafeGetSSLSession(obj, sess) do { \
22 OSSL_Check_Kind((obj), cSSLSession); \
23 GetSSLSession((obj), (sess)); \
24 } while (0)
25
26 extern VALUE mSSL;
27 extern VALUE eSSLError;
28 extern VALUE cSSLSocket;
29 extern VALUE cSSLContext;
30 extern VALUE cSSLSession;
31
32 void Init_ossl_ssl(void);
33 void Init_ossl_ssl_session(void);
34
35 #endif /* _OSSL_SSL_H_ */
36
Init_ossl_ssl_session
void Init_ossl_ssl_session(void)
Definition: ossl_ssl_session.c:296
mSSL
VALUE mSSL
Definition: ossl_ssl.c:27
Init_ossl_ssl
void Init_ossl_ssl()
Definition: ossl_ssl.c:1823
cSSLContext
VALUE cSSLContext
Definition: ossl_ssl.c:29
cSSLSocket
VALUE cSSLSocket
Definition: ossl_ssl.c:30
cSSLSession
VALUE cSSLSession
Definition: ossl_ssl_session.c:20
eSSLError
VALUE eSSLError
Definition: ossl_ssl.c:28
VALUE
unsigned long VALUE
Definition: ripper.y:104