ruby-openssl.patch

Adrian Quark, 06/07/2010 04:06 AM

Download (1.45 KB)

View differences:

ext/openssl/openssl_missing.c (working copy)
36 36
#endif /* NO_HMAC */
37 37

  
38 38
#if !defined(HAVE_X509_STORE_SET_EX_DATA)
39

  
40 39
int X509_STORE_set_ex_data(X509_STORE *str, int idx, void *data)
41 40
{
42 41
    return CRYPTO_set_ex_data(&str->ex_data, idx, data);
43 42
}
43
#endif
44 44

  
45
#if !defined(HAVE_X509_STORE_GET_EX_DATA)
45 46
void *X509_STORE_get_ex_data(X509_STORE *str, int idx)
46 47
{
47 48
    return CRYPTO_get_ex_data(&str->ex_data, idx);
ext/openssl/openssl_missing.h (working copy)
63 63
	(d2i_of_void *)d2i_PKCS7_RECIP_INFO, (char *)ri)
64 64
#endif
65 65

  
66
#if !defined(HAVE_EVP_MD_CTX_INIT)
66
#if !defined(HAVE_HMAC_CTX_INIT)
67 67
void HMAC_CTX_init(HMAC_CTX *ctx);
68 68
#endif
69 69

  
......
133 133
#define OPENSSL_cleanse(p, l) memset(p, 0, l)
134 134
#endif
135 135

  
136
#if !defined(HAVE_X509_STORE_GET_EX_DATA)
137
void *X509_STORE_get_ex_data(X509_STORE *str, int idx);
138
#endif
139

  
136 140
#if !defined(HAVE_X509_STORE_SET_EX_DATA)
137
void *X509_STORE_get_ex_data(X509_STORE *str, int idx);
138 141
int X509_STORE_set_ex_data(X509_STORE *str, int idx, void *data);
139 142
#endif
140 143