• Main Page
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

ext/openssl/ossl_ssl.h

Go to the documentation of this file.
00001 /*
00002  * $Id: ossl_ssl.h 27437 2010-04-22 08:04:13Z nobu $
00003  * 'OpenSSL for Ruby' project
00004  * Copyright (C) 2001-2002  Michal Rokos <m.rokos@sh.cvut.cz>
00005  * All rights reserved.
00006  */
00007 /*
00008  * This program is licenced under the same licence as Ruby.
00009  * (See the file 'LICENCE'.)
00010  */
00011 #if !defined(_OSSL_SSL_H_)
00012 #define _OSSL_SSL_H_
00013 
00014 #define GetSSLSession(obj, sess) do { \
00015         Data_Get_Struct(obj, SSL_SESSION, sess); \
00016         if (!sess) { \
00017                 ossl_raise(rb_eRuntimeError, "SSL Session wasn't initialized."); \
00018         } \
00019 } while (0)
00020 
00021 #define SafeGetSSLSession(obj, sess) do { \
00022         OSSL_Check_Kind(obj, cSSLSession); \
00023         GetSSLSession(obj, sess); \
00024 } while (0)
00025 
00026 extern VALUE mSSL;
00027 extern VALUE eSSLError;
00028 extern VALUE cSSLSocket;
00029 extern VALUE cSSLContext;
00030 extern VALUE cSSLSession;
00031 
00032 void Init_ossl_ssl(void);
00033 void Init_ossl_ssl_session(void);
00034 
00035 #endif /* _OSSL_SSL_H_ */
00036 
00037 

Generated on Wed Sep 8 2010 21:54:09 for Ruby by  doxygen 1.7.1