OpenSDE Packages Database (without history before r20070)
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.

88 lines
2.6 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../nail/openssl-1.0.patch
  5. # Copyright (C) 2011 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. rediffed for our version of nail after
  17. http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/mail-client/nail/files/nail-12.4-openssl-1.patch?revision=1.1
  18. --- mailx-12.3/openssl.c.orig 2006-03-04 01:01:19.000000000 +0100
  19. +++ mailx-12.3/openssl.c 2011-04-28 13:38:54.148000254 +0200
  20. @@ -105,7 +105,7 @@
  21. static void ssl_load_verifications(struct sock *sp);
  22. static void ssl_certificate(struct sock *sp, const char *uhp);
  23. static enum okay ssl_check_host(const char *server, struct sock *sp);
  24. -static int smime_verify(struct message *m, int n, STACK *chain,
  25. +static int smime_verify(struct message *m, int n, STACK_OF(X509) *chain,
  26. X509_STORE *store);
  27. static EVP_CIPHER *smime_cipher(const char *name);
  28. static int ssl_password_cb(char *buf, int size, int rwflag, void *userdata);
  29. @@ -308,7 +308,7 @@
  30. X509 *cert;
  31. X509_NAME *subj;
  32. char data[256];
  33. - /*GENERAL_NAMES*/STACK *gens;
  34. + /*GENERAL_NAMES*/STACK_OF(GENERAL_NAMES) *gens;
  35. GENERAL_NAME *gen;
  36. int i;
  37. @@ -494,7 +494,7 @@
  38. }
  39. static int
  40. -smime_verify(struct message *m, int n, STACK *chain, X509_STORE *store)
  41. +smime_verify(struct message *m, int n, STACK_OF(X509) *chain, X509_STORE *store)
  42. {
  43. struct message *x;
  44. char *cp, *sender, *to, *cc, *cnttype;
  45. @@ -503,7 +503,8 @@
  46. off_t size;
  47. BIO *fb, *pb;
  48. PKCS7 *pkcs7;
  49. - STACK *certs, *gens;
  50. + STACK_OF(X509) *certs;
  51. + STACK_OF(GENERAL_NAMES) *gens;
  52. X509 *cert;
  53. X509_NAME *subj;
  54. char data[LINESIZE];
  55. @@ -612,7 +613,7 @@
  56. {
  57. int *msgvec = vp, *ip;
  58. int ec = 0;
  59. - STACK *chain = NULL;
  60. + STACK_OF(X509) *chain = NULL;
  61. X509_STORE *store;
  62. char *ca_dir, *ca_file;
  63. @@ -685,7 +686,7 @@
  64. X509 *cert;
  65. PKCS7 *pkcs7;
  66. BIO *bb, *yb;
  67. - STACK *certs;
  68. + STACK_OF(X509) *certs;
  69. EVP_CIPHER *cipher;
  70. certfile = expand((char *)certfile);
  71. @@ -948,9 +949,9 @@
  72. off_t size;
  73. BIO *fb, *pb;
  74. PKCS7 *pkcs7;
  75. - STACK *certs;
  76. + STACK_OF(X509) *certs;
  77. X509 *cert;
  78. - STACK *chain = NULL;
  79. + STACK_OF(X509) *chain = NULL;
  80. enum okay ok = OKAY;
  81. message_number = n;