mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
cf2792d591
* ext/openssl, test/openssl: Drop OpenSSL < 0.9.8 support. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
42 lines
1.2 KiB
C
42 lines
1.2 KiB
C
/*
|
|
* '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_OPENSSL_MISSING_H_)
|
|
#define _OSSL_OPENSSL_MISSING_H_
|
|
|
|
/* added in 1.0.0 */
|
|
#if !defined(HAVE_EVP_CIPHER_CTX_COPY)
|
|
int EVP_CIPHER_CTX_copy(EVP_CIPHER_CTX *out, const EVP_CIPHER_CTX *in);
|
|
#endif
|
|
|
|
#if !defined(HAVE_HMAC_CTX_COPY)
|
|
void HMAC_CTX_copy(HMAC_CTX *out, HMAC_CTX *in);
|
|
#endif
|
|
|
|
/* added in 1.0.2 */
|
|
#if !defined(HAVE_X509_REVOKED_DUP)
|
|
# define X509_REVOKED_dup(rev) (X509_REVOKED *)ASN1_dup((i2d_of_void *)i2d_X509_REVOKED, \
|
|
(d2i_of_void *)d2i_X509_REVOKED, (char *)(rev))
|
|
#endif
|
|
|
|
/* added in 1.1.0 */
|
|
#if !defined(HAVE_X509_STORE_GET_EX_DATA)
|
|
# define X509_STORE_get_ex_data(x, idx) \
|
|
CRYPTO_get_ex_data(&(x)->ex_data, (idx))
|
|
#endif
|
|
|
|
#if !defined(HAVE_X509_STORE_SET_EX_DATA)
|
|
# define X509_STORE_set_ex_data(x, idx, data) \
|
|
CRYPTO_set_ex_data(&(x)->ex_data, (idx), (data))
|
|
# define X509_STORE_get_ex_new_index(l, p, newf, dupf, freef) \
|
|
CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_X509_STORE, (l), (p), \
|
|
(newf), (dupf), (freef))
|
|
#endif
|
|
|
|
#endif /* _OSSL_OPENSSL_MISSING_H_ */
|