patch-mutt_ssl_c 740 B

1234567891011121314151617181920
  1. --- mutt-1.5.20.orig/mutt_ssl.c 2009-06-10 07:08:29.000000000 +0200
  2. +++ mutt-1.5.20/mutt_ssl.c 2010-06-02 19:53:33.141613592 +0200
  3. @@ -652,7 +652,7 @@ static int check_host (X509 *x509cert, c
  4. char *buf = NULL;
  5. int bufsize;
  6. /* needed to get the DNS subjectAltNames: */
  7. - STACK *subj_alt_names;
  8. + STACK_OF(GENERAL_NAME) *subj_alt_names;
  9. int subj_alt_names_count;
  10. GENERAL_NAME *subj_alt_name;
  11. /* did we find a name matching hostname? */
  12. @@ -735,7 +735,7 @@ static int ssl_cache_trusted_cert (X509
  13. {
  14. dprint (1, (debugfile, "trusted: %s\n", c->name));
  15. if (!SslSessionCerts)
  16. - SslSessionCerts = sk_new_null();
  17. + SslSessionCerts = sk_X509_new_null();
  18. return (sk_X509_push (SslSessionCerts, X509_dup(c)));
  19. }