mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

187 lines
10 KiB

  1. More information:
  2. http://gcc.gnu.org/ml/gcc/2006-07/msg00037.html
  3. http://marc.info/?l=freebsd-hackers&m=117964416009714&w=2
  4. Index: openssl/crypto/asn1/asn1.h
  5. ===================================================================
  6. RCS file: /home/ncvs/src/crypto/openssl/crypto/asn1/asn1.h,v
  7. retrieving revision 1.1.1.8
  8. diff -u -r1.1.1.8 asn1.h
  9. --- openssl/crypto/asn1/asn1.h 29 Jul 2006 19:10:16 -0000 1.1.1.8
  10. +++ openssl/crypto/asn1/asn1.h 20 May 2007 05:01:40 -0000
  11. @@ -903,22 +903,22 @@
  12. /* Used to implement other functions */
  13. void *ASN1_dup(i2d_of_void *i2d, d2i_of_void *d2i, char *x);
  14. #define ASN1_dup_of(type,i2d,d2i,x) \
  15. - ((type *(*)(I2D_OF(type),D2I_OF(type),type *))openssl_fcast(ASN1_dup))(i2d,d2i,x)
  16. + ((type *)ASN1_dup((i2d_of_void *)(i2d), (d2i_of_void *)(d2i), (char *)(x)))
  17. #define ASN1_dup_of_const(type,i2d,d2i,x) \
  18. - ((type *(*)(I2D_OF_const(type),D2I_OF(type),type *))openssl_fcast(ASN1_dup))(i2d,d2i,x)
  19. + ((type *)ASN1_dup((i2d_of_void *)(i2d), (d2i_of_void *)(d2i), (char *)(x)))
  20. void *ASN1_item_dup(const ASN1_ITEM *it, void *x);
  21. #ifndef OPENSSL_NO_FP_API
  22. void *ASN1_d2i_fp(void *(*xnew)(void), d2i_of_void *d2i, FILE *in, void **x);
  23. #define ASN1_d2i_fp_of(type,xnew,d2i,in,x) \
  24. - ((type *(*)(type *(*)(void),D2I_OF(type),FILE *,type **))openssl_fcast(ASN1_d2i_fp))(xnew,d2i,in,x)
  25. + ((type *)ASN1_d2i_fp((void *(*)(void))(xnew), (d2i_of_void *)(d2i), (in), (void **)(x)))
  26. void *ASN1_item_d2i_fp(const ASN1_ITEM *it, FILE *in, void *x);
  27. int ASN1_i2d_fp(i2d_of_void *i2d,FILE *out,void *x);
  28. #define ASN1_i2d_fp_of(type,i2d,out,x) \
  29. - ((int (*)(I2D_OF(type),FILE *,type *))openssl_fcast(ASN1_i2d_fp))(i2d,out,x)
  30. + (ASN1_i2d_fp((i2d_of_void *)(i2d), (out), (x)))
  31. #define ASN1_i2d_fp_of_const(type,i2d,out,x) \
  32. - ((int (*)(I2D_OF_const(type),FILE *,type *))openssl_fcast(ASN1_i2d_fp))(i2d,out,x)
  33. + (ASN1_i2d_fp((i2d_of_void *)(i2d), (out), (x)))
  34. int ASN1_item_i2d_fp(const ASN1_ITEM *it, FILE *out, void *x);
  35. int ASN1_STRING_print_ex_fp(FILE *fp, ASN1_STRING *str, unsigned long flags);
  36. #endif
  37. @@ -928,13 +928,13 @@
  38. #ifndef OPENSSL_NO_BIO
  39. void *ASN1_d2i_bio(void *(*xnew)(void), d2i_of_void *d2i, BIO *in, void **x);
  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 *)ASN1_d2i_bio( (void *(*)(void))(xnew), (d2i_of_void *)(d2i), (in), (void **)(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. #define ASN1_i2d_bio_of(type,i2d,out,x) \
  46. - ((int (*)(I2D_OF(type),BIO *,type *))openssl_fcast(ASN1_i2d_bio))(i2d,out,x)
  47. + (ASN1_i2d_bio((i2d_of_void *)(i2d), (out), (void *)(x)))
  48. #define ASN1_i2d_bio_of_const(type,i2d,out,x) \
  49. - ((int (*)(I2D_OF_const(type),BIO *,const type *))openssl_fcast(ASN1_i2d_bio))(i2d,out,x)
  50. + (ASN1_i2d_bio((i2d_of_void *)(i2d), (out), (void *)(x)))
  51. int ASN1_item_i2d_bio(const ASN1_ITEM *it, BIO *out, void *x);
  52. int ASN1_UTCTIME_print(BIO *fp,ASN1_UTCTIME *a);
  53. int ASN1_GENERALIZEDTIME_print(BIO *fp,ASN1_GENERALIZEDTIME *a);
  54. @@ -978,7 +978,7 @@
  55. ASN1_STRING *ASN1_pack_string(void *obj, i2d_of_void *i2d,
  56. ASN1_OCTET_STRING **oct);
  57. #define ASN1_pack_string_of(type,obj,i2d,oct) \
  58. - ((ASN1_STRING *(*)(type *,I2D_OF(type),ASN1_OCTET_STRING **))openssl_fcast(ASN1_pack_string))(obj,i2d,oct)
  59. + (ASN1_pack_string((obj), (i2d_of_void *)(i2d), (oct)))
  60. ASN1_STRING *ASN1_item_pack(void *obj, const ASN1_ITEM *it, ASN1_OCTET_STRING **oct);
  61. void ASN1_STRING_set_default_mask(unsigned long mask);
  62. Index: openssl/crypto/ocsp/ocsp.h
  63. ===================================================================
  64. RCS file: /home/ncvs/src/crypto/openssl/crypto/ocsp/ocsp.h,v
  65. retrieving revision 1.1.1.2
  66. diff -u -r1.1.1.2 ocsp.h
  67. --- openssl/crypto/ocsp/ocsp.h 29 Jul 2006 19:10:18 -0000 1.1.1.2
  68. +++ openssl/crypto/ocsp/ocsp.h 20 May 2007 05:13:06 -0000
  69. @@ -469,7 +469,7 @@
  70. ASN1_STRING *ASN1_STRING_encode(ASN1_STRING *s, i2d_of_void *i2d,
  71. void *data, STACK_OF(ASN1_OBJECT) *sk);
  72. #define ASN1_STRING_encode_of(type,s,i2d,data,sk) \
  73. -((ASN1_STRING *(*)(ASN1_STRING *,I2D_OF(type),type *,STACK_OF(ASN1_OBJECT) *))openssl_fcast(ASN1_STRING_encode))(s,i2d,data,sk)
  74. +(ASN1_STRING_encode((s), (i2d_of_void *)(i2d), (data), (STACK_OF(ASN1_OBJECT) *)(sk)))
  75. X509_EXTENSION *OCSP_crlID_new(char *url, long *n, char *tim);
  76. Index: openssl/crypto/pem/pem.h
  77. ===================================================================
  78. RCS file: /home/ncvs/src/crypto/openssl/crypto/pem/pem.h,v
  79. retrieving revision 1.1.1.7
  80. diff -u -r1.1.1.7 pem.h
  81. --- openssl/crypto/pem/pem.h 15 Mar 2007 20:03:01 -0000 1.1.1.7
  82. +++ openssl/crypto/pem/pem.h 20 May 2007 06:02:41 -0000
  83. @@ -220,19 +220,20 @@
  84. #define IMPLEMENT_PEM_read_fp(name, type, str, asn1) \
  85. type *PEM_read_##name(FILE *fp, type **x, pem_password_cb *cb, void *u)\
  86. { \
  87. -return(((type *(*)(D2I_OF(type),char *,FILE *,type **,pem_password_cb *,void *))openssl_fcast(PEM_ASN1_read))(d2i_##asn1, str,fp,x,cb,u)); \
  88. -}
  89. +return((type *)PEM_ASN1_read( \
  90. + (d2i_of_void *)d2i_##asn1,str,fp,(void **)x,cb,u)); \
  91. +}
  92. #define IMPLEMENT_PEM_write_fp(name, type, str, asn1) \
  93. int PEM_write_##name(FILE *fp, type *x) \
  94. { \
  95. -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)); \
  96. +return(PEM_ASN1_write((i2d_of_void *)i2d_##asn1,str,fp,(char *)x,NULL,NULL,0,NULL,NULL)); \
  97. }
  98. #define IMPLEMENT_PEM_write_fp_const(name, type, str, asn1) \
  99. int PEM_write_##name(FILE *fp, const type *x) \
  100. { \
  101. -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)); \
  102. +return(PEM_ASN1_write((i2d_of_void *)i2d_##asn1,str,fp,(char *)x,NULL,NULL,0,NULL,NULL)); \
  103. }
  104. #define IMPLEMENT_PEM_write_cb_fp(name, type, str, asn1) \
  105. @@ -240,7 +241,7 @@
  106. unsigned char *kstr, int klen, pem_password_cb *cb, \
  107. void *u) \
  108. { \
  109. - 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)); \
  110. +return(PEM_ASN1_write((i2d_of_void *)i2d_##asn1,str,fp,(char *)x,enc,kstr,klen,cb,u)); \
  111. }
  112. #define IMPLEMENT_PEM_write_cb_fp_const(name, type, str, asn1) \
  113. @@ -248,7 +249,7 @@
  114. unsigned char *kstr, int klen, pem_password_cb *cb, \
  115. void *u) \
  116. { \
  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(PEM_ASN1_write((i2d_of_void *)i2d_##asn1,str,fp,(char *)x,enc,kstr,klen,cb,u)); \
  119. }
  120. #endif
  121. @@ -256,33 +257,34 @@
  122. #define IMPLEMENT_PEM_read_bio(name, type, str, asn1) \
  123. type *PEM_read_bio_##name(BIO *bp, type **x, pem_password_cb *cb, void *u)\
  124. { \
  125. -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)); \
  126. +return((type *)PEM_ASN1_read_bio( \
  127. + (d2i_of_void *)d2i_##asn1,str,bp,(void **)x,cb,u)); \
  128. }
  129. #define IMPLEMENT_PEM_write_bio(name, type, str, asn1) \
  130. int PEM_write_bio_##name(BIO *bp, type *x) \
  131. { \
  132. -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)); \
  133. +return(PEM_ASN1_write_bio((i2d_of_void *)i2d_##asn1,str,bp,(char *)x,NULL,NULL,0,NULL,NULL)); \
  134. }
  135. #define IMPLEMENT_PEM_write_bio_const(name, type, str, asn1) \
  136. int PEM_write_bio_##name(BIO *bp, const type *x) \
  137. { \
  138. -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)); \
  139. +return(PEM_ASN1_write_bio((i2d_of_void *)i2d_##asn1,str,bp,(char *)x,NULL,NULL,0,NULL,NULL)); \
  140. }
  141. #define IMPLEMENT_PEM_write_cb_bio(name, type, str, asn1) \
  142. int PEM_write_bio_##name(BIO *bp, type *x, const EVP_CIPHER *enc, \
  143. unsigned char *kstr, int klen, pem_password_cb *cb, void *u) \
  144. { \
  145. - 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)); \
  146. +return(PEM_ASN1_write_bio((i2d_of_void *)i2d_##asn1,str,bp,(char *)x,enc,kstr,klen,cb,u)); \
  147. }
  148. #define IMPLEMENT_PEM_write_cb_bio_const(name, type, str, asn1) \
  149. int PEM_write_bio_##name(BIO *bp, type *x, const EVP_CIPHER *enc, \
  150. unsigned char *kstr, int klen, pem_password_cb *cb, void *u) \
  151. { \
  152. - 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)); \
  153. +return(PEM_ASN1_write_bio((i2d_of_void *)i2d_##asn1,str,bp,(char *)x,enc,kstr,klen,cb,u)); \
  154. }
  155. #define IMPLEMENT_PEM_write(name, type, str, asn1) \
  156. @@ -546,12 +548,12 @@
  157. void * PEM_ASN1_read_bio(d2i_of_void *d2i, const char *name, BIO *bp,
  158. void **x, pem_password_cb *cb, void *u);
  159. #define PEM_ASN1_read_bio_of(type,d2i,name,bp,x,cb,u) \
  160. -((type *(*)(D2I_OF(type),const char *,BIO *,type **,pem_password_cb *,void *))openssl_fcast(PEM_ASN1_read_bio))(d2i,name,bp,x,cb,u)
  161. +((type *)PEM_ASN1_read_bio((d2i_of_void *)d2i,name,bp,(void **)x,cb,u))
  162. int PEM_ASN1_write_bio(i2d_of_void *i2d,const char *name,BIO *bp,char *x,
  163. const EVP_CIPHER *enc,unsigned char *kstr,int klen,
  164. pem_password_cb *cb, void *u);
  165. #define PEM_ASN1_write_bio_of(type,i2d,name,bp,x,enc,kstr,klen,cb,u) \
  166. - ((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)
  167. + (PEM_ASN1_write_bio)((i2d_of_void *)i2d,name,bp,(char *)x,enc,kstr,klen,cb,u)
  168. STACK_OF(X509_INFO) * PEM_X509_INFO_read_bio(BIO *bp, STACK_OF(X509_INFO) *sk, pem_password_cb *cb, void *u);
  169. int PEM_X509_INFO_write_bio(BIO *bp,X509_INFO *xi, EVP_CIPHER *enc,