Sha256: ab566e2bc9ebc3ed5755dc48149bc2c420b93e8cc88db85680e8869a0b3ea6d9

Contents?: true

Size: 1.03 KB

Versions: 29

Compression:

Stored size: 1.03 KB

Contents

/*
 * 'OpenSSL for Ruby' project
 * Copyright (C) 2001-2002  Michal Rokos <m.rokos@sh.cvut.cz>
 * All rights reserved.
 */
/*
 * This program is licensed under the same licence as Ruby.
 * (See the file 'LICENCE'.)
 */
#if !defined(_OSSL_SSL_H_)
#define _OSSL_SSL_H_

#define GetSSL(obj, ssl) do { \
	TypedData_Get_Struct((obj), SSL, &ossl_ssl_type, (ssl)); \
	if (!(ssl)) { \
		ossl_raise(rb_eRuntimeError, "SSL is not initialized"); \
	} \
} while (0)

#define GetSSLSession(obj, sess) do { \
	TypedData_Get_Struct((obj), SSL_SESSION, &ossl_ssl_session_type, (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 const rb_data_type_t ossl_ssl_type;
extern const rb_data_type_t ossl_ssl_session_type;
extern VALUE mSSL;
extern VALUE cSSLSocket;
extern VALUE cSSLSession;

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

#endif /* _OSSL_SSL_H_ */

Version data entries

29 entries across 29 versions & 5 rubygems

Version Path
rho-tau-extensions-7.6.0 libs/openssl-edge/ext/ossl_ssl.h
rhodes-7.6.0 lib/extensions/openssl/ext/ossl_ssl.h
rhodes-7.5.1 lib/extensions/openssl/ext/ossl_ssl.h
rho-tau-extensions-7.4.1 libs/openssl-edge/ext/ossl_ssl.h
rhodes-7.4.1 lib/extensions/openssl/ext/ossl_ssl.h
rubysl-openssl-2.13 ext/rubysl/openssl/ossl_ssl.h
rubysl-openssl-2.12 ext/rubysl/openssl/ossl_ssl.h
rubysl-openssl-2.11 ext/rubysl/openssl/ossl_ssl.h
rho-tau-extensions-7.1.17 libs/openssl-edge/ext/ossl_ssl.h
rhodes-7.1.17 lib/extensions/openssl/ext/ossl_ssl.h
rho-tau-extensions-6.2.0 libs/openssl-edge/ext/ossl_ssl.h
rhodes-6.2.0 lib/extensions/openssl/ext/ossl_ssl.h
openssl-2.0.9 ext/openssl/ossl_ssl.h
openssl-2.0.8 ext/openssl/ossl_ssl.h
openssl-2.0.7 ext/openssl/ossl_ssl.h
rho-tau-extensions-6.0.11 libs/openssl-edge/ext/ossl_ssl.h
rho-tau-extensions-6.0.0 libs/openssl-edge/ext/ossl_ssl.h
openssl-2.0.6 ext/openssl/ossl_ssl.h
openssl-2.0.5 ext/openssl/ossl_ssl.h
openssl-2.0.4 ext/openssl/ossl_ssl.h