Sha256: 84750a24f9f24d0a12c9c5b78867fef6498e027794ff50cd6e6a8ab60cda3c41

Contents?: true

Size: 841 Bytes

Versions: 13

Compression:

Stored size: 841 Bytes

Contents

/*
 * $Id: ossl_ssl.h 27437 2010-04-22 08:04:13Z nobu $
 * 'OpenSSL for Ruby' project
 * Copyright (C) 2001-2002  Michal Rokos <m.rokos@sh.cvut.cz>
 * All rights reserved.
 */
/*
 * This program is licenced under the same licence as Ruby.
 * (See the file 'LICENCE'.)
 */
#if !defined(_OSSL_SSL_H_)
#define _OSSL_SSL_H_

#define GetSSLSession(obj, sess) do { \
	Data_Get_Struct(obj, SSL_SESSION, sess); \
	if (!sess) { \
		ossl_raise(rb_eRuntimeError, "SSL Session wasn't initialized."); \
	} \
} while (0)

#define SafeGetSSLSession(obj, sess) do { \
	OSSL_Check_Kind(obj, cSSLSession); \
	GetSSLSession(obj, sess); \
} while (0)

extern VALUE mSSL;
extern VALUE eSSLError;
extern VALUE cSSLSocket;
extern VALUE cSSLContext;
extern VALUE cSSLSession;

void Init_ossl_ssl(void);
void Init_ossl_ssl_session(void);

#endif /* _OSSL_SSL_H_ */

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
rhodes-5.5.18 lib/extensions/openssl/ext/ossl_ssl.h
rhodes-5.5.17 lib/extensions/openssl/ext/ossl_ssl.h
rhodes-5.5.15 lib/extensions/openssl/ext/ossl_ssl.h
rhodes-5.5.0.22 lib/extensions/openssl/ext/ossl_ssl.h
rhodes-5.5.2 lib/extensions/openssl/ext/ossl_ssl.h
rhodes-5.5.0.7 lib/extensions/openssl/ext/ossl_ssl.h
rhodes-5.5.0.3 lib/extensions/openssl/ext/ossl_ssl.h
rhodes-5.5.0 lib/extensions/openssl/ext/ossl_ssl.h
tauplatform-1.0.3 lib/extensions/openssl/ext/ossl_ssl.h
tauplatform-1.0.2 lib/extensions/openssl/ext/ossl_ssl.h
tauplatform-1.0.1 lib/extensions/openssl/ext/ossl_ssl.h
rhodes-3.5.1.12 lib/extensions/openssl/ext/ossl_ssl.h
rhodes-3.4.2 lib/extensions/openssl/ext/ossl_ssl.h