Line 0
Link Here
|
|
|
1 |
--- src/network/ssl/qsslsocket_openssl_symbols_p.h.orig 2015-05-07 14:14:44 UTC |
2 |
+++ src/network/ssl/qsslsocket_openssl_symbols_p.h |
3 |
@@ -218,6 +218,9 @@ void q_CRYPTO_set_locking_callback(void |
4 |
void q_CRYPTO_set_id_callback(unsigned long (*a)()); |
5 |
void q_CRYPTO_free(void *a); |
6 |
void q_DSA_free(DSA *a); |
7 |
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L |
8 |
+int q_DSA_bits(DSA *a); |
9 |
+#endif |
10 |
#if OPENSSL_VERSION_NUMBER >= 0x00908000L |
11 |
// 0.9.8 broke SC and BC by changing this function's signature. |
12 |
X509 *q_d2i_X509(X509 **a, const unsigned char **b, long c); |
13 |
@@ -227,12 +230,18 @@ X509 *q_d2i_X509(X509 **a, unsigned char |
14 |
char *q_ERR_error_string(unsigned long a, char *b); |
15 |
unsigned long q_ERR_get_error(); |
16 |
const EVP_CIPHER *q_EVP_des_ede3_cbc(); |
17 |
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L |
18 |
+const EVP_MD *q_EVP_sha1(); |
19 |
+#endif |
20 |
int q_EVP_PKEY_assign(EVP_PKEY *a, int b, char *c); |
21 |
int q_EVP_PKEY_set1_RSA(EVP_PKEY *a, RSA *b); |
22 |
int q_EVP_PKEY_set1_DSA(EVP_PKEY *a, DSA *b); |
23 |
void q_EVP_PKEY_free(EVP_PKEY *a); |
24 |
RSA *q_EVP_PKEY_get1_RSA(EVP_PKEY *a); |
25 |
DSA *q_EVP_PKEY_get1_DSA(EVP_PKEY *a); |
26 |
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L |
27 |
+int q_EVP_PKEY_base_id(EVP_PKEY *a); |
28 |
+#endif |
29 |
int q_EVP_PKEY_type(int a); |
30 |
EVP_PKEY *q_EVP_PKEY_new(); |
31 |
int q_i2d_X509(X509 *a, unsigned char **b); |
32 |
@@ -258,6 +267,9 @@ int q_PEM_write_bio_RSA_PUBKEY(BIO *a, R |
33 |
void q_RAND_seed(const void *a, int b); |
34 |
int q_RAND_status(); |
35 |
void q_RSA_free(RSA *a); |
36 |
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L |
37 |
+int q_RSA_bits(RSA *a); |
38 |
+#endif |
39 |
int q_sk_num(STACK *a); |
40 |
void q_sk_pop_free(STACK *a, void (*b)(void *)); |
41 |
#if OPENSSL_VERSION_NUMBER >= 0x10000000L |
42 |
@@ -270,6 +282,9 @@ char * q_sk_value(STACK *a, int b); |
43 |
int q_SSL_accept(SSL *a); |
44 |
int q_SSL_clear(SSL *a); |
45 |
char *q_SSL_CIPHER_description(SSL_CIPHER *a, char *b, int c); |
46 |
+#if OPENSSL_VERSION_NUMBER >= 0x10000000L |
47 |
+int q_SSL_CIPHER_get_bits(SSL_CIPHER *a, int *b); |
48 |
+#endif |
49 |
int q_SSL_connect(SSL *a); |
50 |
#if OPENSSL_VERSION_NUMBER >= 0x00908000L |
51 |
// 0.9.8 broke SC and BC by changing this function's signature. |
52 |
@@ -293,6 +308,7 @@ int q_SSL_CTX_use_certificate_file(SSL_C |
53 |
int q_SSL_CTX_use_PrivateKey(SSL_CTX *a, EVP_PKEY *b); |
54 |
int q_SSL_CTX_use_RSAPrivateKey(SSL_CTX *a, RSA *b); |
55 |
int q_SSL_CTX_use_PrivateKey_file(SSL_CTX *a, const char *b, int c); |
56 |
+X509_STORE *q_SSL_CTX_get_cert_store(const SSL_CTX *a); |
57 |
void q_SSL_free(SSL *a); |
58 |
#if OPENSSL_VERSION_NUMBER >= 0x00908000L |
59 |
// 0.9.8 broke SC and BC by changing this function's signature. |
60 |
@@ -353,6 +369,9 @@ void *q_ASN1_dup(i2d_of_void *i2d, d2i_o |
61 |
#else |
62 |
X509 *q_X509_dup(X509 *a); |
63 |
#endif |
64 |
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L |
65 |
+int q_X509_digest(const X509 *x509, const EVP_MD *type, unsigned char *md, unsigned int *len); |
66 |
+#endif |
67 |
ASN1_OBJECT *q_X509_EXTENSION_get_object(X509_EXTENSION *a); |
68 |
void q_X509_free(X509 *a); |
69 |
X509_EXTENSION *q_X509_get_ext(X509 *a, int b); |
70 |
@@ -360,6 +379,13 @@ int q_X509_get_ext_count(X509 *a); |
71 |
void *q_X509_get_ext_d2i(X509 *a, int b, int *c, int *d); |
72 |
X509_NAME *q_X509_get_issuer_name(X509 *a); |
73 |
X509_NAME *q_X509_get_subject_name(X509 *a); |
74 |
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L |
75 |
+long q_X509_get_version(X509 *a); |
76 |
+ASN1_INTEGER *q_X509_get_serialNumber(X509 *a); |
77 |
+EVP_PKEY *q_X509_get_pubkey(X509 *a); |
78 |
+const ASN1_TIME *q_X509_get0_notBefore(X509 *a); |
79 |
+const ASN1_TIME *q_X509_get0_notAfter(X509 *a); |
80 |
+#endif |
81 |
int q_X509_verify_cert(X509_STORE_CTX *ctx); |
82 |
int q_X509_NAME_entry_count(X509_NAME *a); |
83 |
X509_NAME_ENTRY *q_X509_NAME_get_entry(X509_NAME *a,int b); |
84 |
@@ -399,7 +425,11 @@ DSA *q_d2i_DSAPrivateKey(DSA **a, unsign |
85 |
PEM_ASN1_write_bio((int (*)(void*, unsigned char**))q_i2d_DSAPrivateKey,PEM_STRING_DSA,\ |
86 |
bp,(char *)x,enc,kstr,klen,cb,u) |
87 |
#endif |
88 |
+#if OPENSSL_VERSION_NUMBER <= 0x10100000L |
89 |
#define q_SSL_CTX_set_options(ctx,op) q_SSL_CTX_ctrl((ctx),SSL_CTRL_OPTIONS,(op),NULL) |
90 |
+#else |
91 |
+unsigned long q_SSL_CTX_set_options(SSL_CTX *ctx, unsigned long op); |
92 |
+#endif |
93 |
#define q_SKM_sk_num(type, st) ((int (*)(const STACK_OF(type) *))q_sk_num)(st) |
94 |
#define q_SKM_sk_value(type, st,i) ((type * (*)(const STACK_OF(type) *, int))q_sk_value)(st, i) |
95 |
#define q_sk_GENERAL_NAME_num(st) q_SKM_sk_num(GENERAL_NAME, (st)) |