Sha256: ea9035143a3da32f101017fb6f85f2e3d35b77523ad308e90657fe18a81a2aec

Contents?: true

Size: 929 Bytes

Versions: 19

Compression:

Stored size: 929 Bytes

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)

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

19 entries across 19 versions & 3 rubygems

Version Path
openssl-3.2.0 ext/openssl/ossl_ssl.h
zig_example-0.3.2 ext/openssl/ossl_ssl.h
zig_example-0.3.1 ext/openssl/ossl_ssl.h
openssl-3.1.0 ext/openssl/ossl_ssl.h
openssl-3.0.2 ext/openssl/ossl_ssl.h
openssl-2.2.3 ext/openssl/ossl_ssl.h
openssl-custom-2.2.2 ext/openssl/ossl_ssl.h
openssl-3.0.1 ext/openssl/ossl_ssl.h
openssl-2.2.2 ext/openssl/ossl_ssl.h
openssl-2.1.4 ext/openssl/ossl_ssl.h
openssl-3.0.0 ext/openssl/ossl_ssl.h
openssl-2.2.1 ext/openssl/ossl_ssl.h
openssl-2.1.3 ext/openssl/ossl_ssl.h
openssl-2.2.0 ext/openssl/ossl_ssl.h
openssl-2.1.2 ext/openssl/ossl_ssl.h
openssl-2.1.1 ext/openssl/ossl_ssl.h
openssl-2.1.0 ext/openssl/ossl_ssl.h
openssl-2.1.0.beta2 ext/openssl/ossl_ssl.h
openssl-2.1.0.beta1 ext/openssl/ossl_ssl.h