1 --- openssl-0.9.8e/crypto/asn1/asn1.h.gcc42~ 2006-02-19 14:45:22.000000000 +0100
2 +++ openssl-0.9.8e/crypto/asn1/asn1.h 2007-03-04 12:35:59.000000000 +0100
5 /* Used to implement other functions */
6 void *ASN1_dup(i2d_of_void *i2d, d2i_of_void *d2i, char *x);
7 +extern const void *__ASN1_dup;
8 #define ASN1_dup_of(type,i2d,d2i,x) \
9 - ((type *(*)(I2D_OF(type),D2I_OF(type),type *))openssl_fcast(ASN1_dup))(i2d,d2i,x)
10 + ((type *(*)(I2D_OF(type),D2I_OF(type),type *))__ASN1_dup)(i2d,d2i,x)
11 #define ASN1_dup_of_const(type,i2d,d2i,x) \
12 - ((type *(*)(I2D_OF_const(type),D2I_OF(type),type *))openssl_fcast(ASN1_dup))(i2d,d2i,x)
13 + ((type *(*)(I2D_OF_const(type),D2I_OF(type),type *))__ASN1_dup)(i2d,d2i,x)
15 void *ASN1_item_dup(const ASN1_ITEM *it, void *x);
17 #ifndef OPENSSL_NO_FP_API
18 void *ASN1_d2i_fp(void *(*xnew)(void), d2i_of_void *d2i, FILE *in, void **x);
19 +extern const void *__ASN1_d2i_fp;
20 #define ASN1_d2i_fp_of(type,xnew,d2i,in,x) \
21 - ((type *(*)(type *(*)(void),D2I_OF(type),FILE *,type **))openssl_fcast(ASN1_d2i_fp))(xnew,d2i,in,x)
22 + ((type *(*)(type *(*)(void),D2I_OF(type),FILE *,type **))__ASN1_d2i_fp)(xnew,d2i,in,x)
23 void *ASN1_item_d2i_fp(const ASN1_ITEM *it, FILE *in, void *x);
24 int ASN1_i2d_fp(i2d_of_void *i2d,FILE *out,void *x);
25 +extern const void *__ASN1_i2d_fp;
26 #define ASN1_i2d_fp_of(type,i2d,out,x) \
27 - ((int (*)(I2D_OF(type),FILE *,type *))openssl_fcast(ASN1_i2d_fp))(i2d,out,x)
28 + ((int (*)(I2D_OF(type),FILE *,type *))__ASN1_i2d_fp)(i2d,out,x)
29 #define ASN1_i2d_fp_of_const(type,i2d,out,x) \
30 - ((int (*)(I2D_OF_const(type),FILE *,type *))openssl_fcast(ASN1_i2d_fp))(i2d,out,x)
31 + ((int (*)(I2D_OF_const(type),FILE *,type *))__ASN1_i2d_fp)(i2d,out,x)
32 int ASN1_item_i2d_fp(const ASN1_ITEM *it, FILE *out, void *x);
33 int ASN1_STRING_print_ex_fp(FILE *fp, ASN1_STRING *str, unsigned long flags);
37 #ifndef OPENSSL_NO_BIO
38 void *ASN1_d2i_bio(void *(*xnew)(void), d2i_of_void *d2i, BIO *in, void **x);
39 +extern const void *__ASN1_d2i_bio;
40 #define ASN1_d2i_bio_of(type,xnew,d2i,in,x) \
41 - ((type *(*)(type *(*)(void),D2I_OF(type),BIO *,type **))openssl_fcast(ASN1_d2i_bio))(xnew,d2i,in,x)
42 + ((type *(*)(type *(*)(void),D2I_OF(type),BIO *,type **))__ASN1_d2i_bio)(xnew,d2i,in,x)
43 void *ASN1_item_d2i_bio(const ASN1_ITEM *it, BIO *in, void *x);
44 int ASN1_i2d_bio(i2d_of_void *i2d,BIO *out, unsigned char *x);
45 +extern const void *__ASN1_i2d_bio;
46 #define ASN1_i2d_bio_of(type,i2d,out,x) \
47 - ((int (*)(I2D_OF(type),BIO *,type *))openssl_fcast(ASN1_i2d_bio))(i2d,out,x)
48 + ((int (*)(I2D_OF(type),BIO *,type *))__ASN1_i2d_bio)(i2d,out,x)
49 #define ASN1_i2d_bio_of_const(type,i2d,out,x) \
50 - ((int (*)(I2D_OF_const(type),BIO *,const type *))openssl_fcast(ASN1_i2d_bio))(i2d,out,x)
51 + ((int (*)(I2D_OF_const(type),BIO *,const type *))__ASN1_i2d_bio)(i2d,out,x)
52 int ASN1_item_i2d_bio(const ASN1_ITEM *it, BIO *out, void *x);
53 int ASN1_UTCTIME_print(BIO *fp,ASN1_UTCTIME *a);
54 int ASN1_GENERALIZEDTIME_print(BIO *fp,ASN1_GENERALIZEDTIME *a);
56 void *ASN1_item_unpack(ASN1_STRING *oct, const ASN1_ITEM *it);
57 ASN1_STRING *ASN1_pack_string(void *obj, i2d_of_void *i2d,
58 ASN1_OCTET_STRING **oct);
59 +extern const void *__ASN1_pack_string;
60 #define ASN1_pack_string_of(type,obj,i2d,oct) \
61 - ((ASN1_STRING *(*)(type *,I2D_OF(type),ASN1_OCTET_STRING **))openssl_fcast(ASN1_pack_string))(obj,i2d,oct)
62 + ((ASN1_STRING *(*)(type *,I2D_OF(type),ASN1_OCTET_STRING **))__ASN1_pack_string)(obj,i2d,oct)
63 ASN1_STRING *ASN1_item_pack(void *obj, const ASN1_ITEM *it, ASN1_OCTET_STRING **oct);
65 void ASN1_STRING_set_default_mask(unsigned long mask);
66 --- openssl-0.9.8e/crypto/ocsp/ocsp.h.gcc42~ 2005-05-13 01:01:43.000000000 +0200
67 +++ openssl-0.9.8e/crypto/ocsp/ocsp.h 2007-03-04 12:35:59.000000000 +0100
70 ASN1_STRING *ASN1_STRING_encode(ASN1_STRING *s, i2d_of_void *i2d,
71 void *data, STACK_OF(ASN1_OBJECT) *sk);
72 +extern const void *__ASN1_STRING_encode;
73 #define ASN1_STRING_encode_of(type,s,i2d,data,sk) \
74 -((ASN1_STRING *(*)(ASN1_STRING *,I2D_OF(type),type *,STACK_OF(ASN1_OBJECT) *))openssl_fcast(ASN1_STRING_encode))(s,i2d,data,sk)
75 +((ASN1_STRING *(*)(ASN1_STRING *,I2D_OF(type),type *,STACK_OF(ASN1_OBJECT) *))__ASN1_STRING_encode)(s,i2d,data,sk)
77 X509_EXTENSION *OCSP_crlID_new(char *url, long *n, char *tim);
79 --- openssl-0.9.8e/crypto/pem/pem.h.gcc42~ 2006-12-19 20:47:36.000000000 +0100
80 +++ openssl-0.9.8e/crypto/pem/pem.h 2007-03-04 12:44:19.000000000 +0100
82 #define IMPLEMENT_PEM_read_fp(name, type, str, asn1) \
83 type *PEM_read_##name(FILE *fp, type **x, pem_password_cb *cb, void *u)\
85 -return(((type *(*)(D2I_OF(type),char *,FILE *,type **,pem_password_cb *,void *))openssl_fcast(PEM_ASN1_read))(d2i_##asn1, str,fp,x,cb,u)); \
86 +return(((type *(*)(D2I_OF(type),char *,FILE *,type **,pem_password_cb *,void *))__PEM_ASN1_read)(d2i_##asn1, str,fp,x,cb,u)); \
89 #define IMPLEMENT_PEM_write_fp(name, type, str, asn1) \
90 int PEM_write_##name(FILE *fp, type *x) \
92 -return(((int (*)(I2D_OF(type),const char *,FILE *,type *, const EVP_CIPHER *,unsigned char *,int, pem_password_cb *,void *))openssl_fcast(PEM_ASN1_write))(i2d_##asn1,str,fp,x,NULL,NULL,0,NULL,NULL)); \
93 +return(((int (*)(I2D_OF(type),const char *,FILE *,type *, const EVP_CIPHER *,unsigned char *,int, pem_password_cb *,void *))__PEM_ASN1_write)(i2d_##asn1,str,fp,x,NULL,NULL,0,NULL,NULL)); \
96 #define IMPLEMENT_PEM_write_fp_const(name, type, str, asn1) \
97 int PEM_write_##name(FILE *fp, const type *x) \
99 -return(((int (*)(I2D_OF_const(type),const char *,FILE *, const type *, const EVP_CIPHER *,unsigned char *,int, pem_password_cb *,void *))openssl_fcast(PEM_ASN1_write))(i2d_##asn1,str,fp,x,NULL,NULL,0,NULL,NULL)); \
100 +return(((int (*)(I2D_OF_const(type),const char *,FILE *, const type *, const EVP_CIPHER *,unsigned char *,int, pem_password_cb *,void *))__PEM_ASN1_write)(i2d_##asn1,str,fp,x,NULL,NULL,0,NULL,NULL)); \
103 #define IMPLEMENT_PEM_write_cb_fp(name, type, str, asn1) \
105 unsigned char *kstr, int klen, pem_password_cb *cb, \
108 - return(((int (*)(I2D_OF(type),const char *,FILE *,type *, const EVP_CIPHER *,unsigned char *,int, pem_password_cb *,void *))openssl_fcast(PEM_ASN1_write))(i2d_##asn1,str,fp,x,enc,kstr,klen,cb,u)); \
109 + return(((int (*)(I2D_OF(type),const char *,FILE *,type *, const EVP_CIPHER *,unsigned char *,int, pem_password_cb *,void *))__PEM_ASN1_write)(i2d_##asn1,str,fp,x,enc,kstr,klen,cb,u)); \
112 #define IMPLEMENT_PEM_write_cb_fp_const(name, type, str, asn1) \
114 unsigned char *kstr, int klen, pem_password_cb *cb, \
117 - return(((int (*)(I2D_OF_const(type),const char *,FILE *,type *, const EVP_CIPHER *,unsigned char *,int, pem_password_cb *,void *))openssl_fcast(PEM_ASN1_write))(i2d_##asn1,str,fp,x,enc,kstr,klen,cb,u)); \
118 + return(((int (*)(I2D_OF_const(type),const char *,FILE *,type *, const EVP_CIPHER *,unsigned char *,int, pem_password_cb *,void *))__PEM_ASN1_write)(i2d_##asn1,str,fp,x,enc,kstr,klen,cb,u)); \
122 @@ -256,33 +261,33 @@
123 #define IMPLEMENT_PEM_read_bio(name, type, str, asn1) \
124 type *PEM_read_bio_##name(BIO *bp, type **x, pem_password_cb *cb, void *u)\
126 -return(((type *(*)(D2I_OF(type),const char *,BIO *,type **,pem_password_cb *,void *))openssl_fcast(PEM_ASN1_read_bio))(d2i_##asn1, str,bp,x,cb,u)); \
127 +return(((type *(*)(D2I_OF(type),const char *,BIO *,type **,pem_password_cb *,void *))__PEM_ASN1_read_bio)(d2i_##asn1, str,bp,x,cb,u)); \
130 #define IMPLEMENT_PEM_write_bio(name, type, str, asn1) \
131 int PEM_write_bio_##name(BIO *bp, type *x) \
133 -return(((int (*)(I2D_OF(type),const char *,BIO *,type *, const EVP_CIPHER *,unsigned char *,int, pem_password_cb *,void *))openssl_fcast(PEM_ASN1_write_bio))(i2d_##asn1,str,bp,x,NULL,NULL,0,NULL,NULL)); \
134 +return(((int (*)(I2D_OF(type),const char *,BIO *,type *, const EVP_CIPHER *,unsigned char *,int, pem_password_cb *,void *))__PEM_ASN1_write_bio)(i2d_##asn1,str,bp,x,NULL,NULL,0,NULL,NULL)); \
137 #define IMPLEMENT_PEM_write_bio_const(name, type, str, asn1) \
138 int PEM_write_bio_##name(BIO *bp, const type *x) \
140 -return(((int (*)(I2D_OF_const(type),const char *,BIO *,const type *, const EVP_CIPHER *,unsigned char *,int, pem_password_cb *,void *))openssl_fcast(PEM_ASN1_write_bio))(i2d_##asn1,str,bp,x,NULL,NULL,0,NULL,NULL)); \
141 +return(((int (*)(I2D_OF_const(type),const char *,BIO *,const type *, const EVP_CIPHER *,unsigned char *,int, pem_password_cb *,void *))__PEM_ASN1_write_bio)(i2d_##asn1,str,bp,x,NULL,NULL,0,NULL,NULL)); \
144 #define IMPLEMENT_PEM_write_cb_bio(name, type, str, asn1) \
145 int PEM_write_bio_##name(BIO *bp, type *x, const EVP_CIPHER *enc, \
146 unsigned char *kstr, int klen, pem_password_cb *cb, void *u) \
148 - return(((int (*)(I2D_OF(type),const char *,BIO *,type *,const EVP_CIPHER *,unsigned char *,int,pem_password_cb *,void *))openssl_fcast(PEM_ASN1_write_bio))(i2d_##asn1,str,bp,x,enc,kstr,klen,cb,u)); \
149 + return(((int (*)(I2D_OF(type),const char *,BIO *,type *,const EVP_CIPHER *,unsigned char *,int,pem_password_cb *,void *))__PEM_ASN1_write_bio)(i2d_##asn1,str,bp,x,enc,kstr,klen,cb,u)); \
152 #define IMPLEMENT_PEM_write_cb_bio_const(name, type, str, asn1) \
153 int PEM_write_bio_##name(BIO *bp, type *x, const EVP_CIPHER *enc, \
154 unsigned char *kstr, int klen, pem_password_cb *cb, void *u) \
156 - return(((int (*)(I2D_OF_const(type),const char *,BIO *,type *,const EVP_CIPHER *,unsigned char *,int,pem_password_cb *,void *))openssl_fcast(PEM_ASN1_write_bio))(i2d_##asn1,str,bp,x,enc,kstr,klen,cb,u)); \
157 + return(((int (*)(I2D_OF_const(type),const char *,BIO *,type *,const EVP_CIPHER *,unsigned char *,int,pem_password_cb *,void *))__PEM_ASN1_write_bio)(i2d_##asn1,str,bp,x,enc,kstr,klen,cb,u)); \
160 #define IMPLEMENT_PEM_write(name, type, str, asn1) \
161 @@ -545,13 +555,15 @@
162 pem_password_cb *cb, void *u);
163 void * PEM_ASN1_read_bio(d2i_of_void *d2i, const char *name, BIO *bp,
164 void **x, pem_password_cb *cb, void *u);
165 +extern const void *__PEM_ASN1_read_bio;
166 #define PEM_ASN1_read_bio_of(type,d2i,name,bp,x,cb,u) \
167 -((type *(*)(D2I_OF(type),const char *,BIO *,type **,pem_password_cb *,void *))openssl_fcast(PEM_ASN1_read_bio))(d2i,name,bp,x,cb,u)
168 +((type *(*)(D2I_OF(type),const char *,BIO *,type **,pem_password_cb *,void *))__PEM_ASN1_read_bio)(d2i,name,bp,x,cb,u)
169 int PEM_ASN1_write_bio(i2d_of_void *i2d,const char *name,BIO *bp,char *x,
170 const EVP_CIPHER *enc,unsigned char *kstr,int klen,
171 pem_password_cb *cb, void *u);
172 +extern const void *__PEM_ASN1_write_bio;
173 #define PEM_ASN1_write_bio_of(type,i2d,name,bp,x,enc,kstr,klen,cb,u) \
174 - ((int (*)(I2D_OF(type),const char *,BIO *,type *, const EVP_CIPHER *,unsigned char *,int, pem_password_cb *,void *))openssl_fcast(PEM_ASN1_write_bio))(i2d,name,bp,x,enc,kstr,klen,cb,u)
175 + ((int (*)(I2D_OF(type),const char *,BIO *,type *, const EVP_CIPHER *,unsigned char *,int, pem_password_cb *,void *))__PEM_ASN1_write_bio)(i2d,name,bp,x,enc,kstr,klen,cb,u)
177 STACK_OF(X509_INFO) * PEM_X509_INFO_read_bio(BIO *bp, STACK_OF(X509_INFO) *sk, pem_password_cb *cb, void *u);
178 int PEM_X509_INFO_write_bio(BIO *bp,X509_INFO *xi, EVP_CIPHER *enc,
179 @@ -566,11 +566,13 @@
180 int PEM_write(FILE *fp,char *name,char *hdr,unsigned char *data,long len);
181 void * PEM_ASN1_read(d2i_of_void *d2i, const char *name, FILE *fp, void **x,
182 pem_password_cb *cb, void *u);
183 +extern const void *__PEM_ASN1_read;
184 int PEM_ASN1_write(i2d_of_void *i2d,const char *name,FILE *fp,
185 char *x,const EVP_CIPHER *enc,unsigned char *kstr,
186 int klen,pem_password_cb *callback, void *u);
187 STACK_OF(X509_INFO) * PEM_X509_INFO_read(FILE *fp, STACK_OF(X509_INFO) *sk,
188 pem_password_cb *cb, void *u);
189 +extern const void *__PEM_ASN1_write;
192 int PEM_SealInit(PEM_ENCODE_SEAL_CTX *ctx, EVP_CIPHER *type,
193 --- openssl-0.9.8e/crypto/asn1/a_d2i_fp.c.ark 2007-04-17 17:50:28.000000000 +0000
194 +++ openssl-0.9.8e/crypto/asn1/a_d2i_fp.c 2007-04-17 19:17:24.000000000 +0000
199 +const void * __attribute__((unused)) __ASN1_d2i_fp=(const void*)openssl_fcast(ASN1_d2i_fp);
202 void *ASN1_d2i_bio(void *(*xnew)(void), d2i_of_void *d2i, BIO *in, void **x)
204 if (b != NULL) BUF_MEM_free(b);
207 +const void * __attribute__((unused)) __ASN1_d2i_bio=(const void*)openssl_fcast(ASN1_d2i_bio);
211 --- openssl-0.9.8e/crypto/asn1/a_dup.c.ark 2007-04-17 17:49:31.000000000 +0000
212 +++ openssl-0.9.8e/crypto/asn1/a_dup.c 2007-04-17 17:49:59.000000000 +0000
217 +const void * __attribute__((unused)) __ASN1_dup=(const void*)openssl_fcast(ASN1_dup);
221 --- openssl-0.9.8e/crypto/asn1/a_i2d_fp.c.ark 2007-04-17 17:52:19.000000000 +0000
222 +++ openssl-0.9.8e/crypto/asn1/a_i2d_fp.c 2007-04-17 19:19:29.000000000 +0000
227 +const void * __attribute__((unused)) __ASN1_i2d_fp=(const void*)openssl_fcast(ASN1_i2d_fp);
230 int ASN1_i2d_bio(i2d_of_void *i2d, BIO *out, unsigned char *x)
235 +const void * __attribute__((unused)) __ASN1_i2d_bio=(const void*)openssl_fcast(ASN1_i2d_bio);
239 --- openssl-0.9.8e/crypto/asn1/asn_pack.c.ark 2007-04-17 19:18:35.000000000 +0000
240 +++ openssl-0.9.8e/crypto/asn1/asn_pack.c 2007-04-17 19:19:20.000000000 +0000
245 +const void * __attribute__((unused)) __ASN1_pack_string=(const void*)openssl_fcast(ASN1_pack_string);
249 --- openssl-0.9.8e/crypto/ocsp/ocsp_ext.c.ark 2007-04-17 19:20:35.000000000 +0000
250 +++ openssl-0.9.8e/crypto/ocsp/ocsp_ext.c 2007-04-17 19:21:19.000000000 +0000
252 if (b) OPENSSL_free(b);
255 +const void * __attribute__((unused)) __ASN1_STRING_encode=(const void*)openssl_fcast(ASN1_STRING_encode);
257 /* Nonce handling functions */
259 --- openssl-0.9.8e/crypto/pem/pem_lib.c.ark 2007-04-17 19:21:44.000000000 +0000
260 +++ openssl-0.9.8e/crypto/pem/pem_lib.c 2007-04-17 19:26:35.000000000 +0000
265 +const void * __attribute__((unused)) __PEM_ASN1_read=(const void*)openssl_fcast(PEM_ASN1_read);
268 static int check_pem(const char *nm, const char *name)
273 +const void * __attribute__((unused)) __PEM_ASN1_write=(const void*)openssl_fcast(PEM_ASN1_write);
276 int PEM_ASN1_write_bio(i2d_of_void *i2d, const char *name, BIO *bp,
281 +const void * __attribute__((unused)) __PEM_ASN1_write_bio=(const void*)openssl_fcast(PEM_ASN1_write_bio);
283 int PEM_do_header(EVP_CIPHER_INFO *cipher, unsigned char *data, long *plen,
284 pem_password_cb *callback,void *u)
285 --- openssl-0.9.8e/crypto/pem/pem_oth.c.ark 2007-04-17 19:27:10.000000000 +0000
286 +++ openssl-0.9.8e/crypto/pem/pem_oth.c 2007-04-17 19:30:00.000000000 +0000
291 +const void * __attribute__((unused)) __PEM_ASN1_read_bio=(const void*)openssl_fcast(PEM_ASN1_read_bio);