From fed9ac30a34c64c790127fdd195c6c74b25651a6 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov <lemenkov@gmail.com> Date: Tue, 24 Aug 2010 10:08:26 +0400 Subject: [PATCH 2/3] Compile OpenSSL module with newest GCC Signed-off-by: Peter Lemenkov <lemenkov@gmail.com> --- source/openssl/cert.cxx | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/openssl/cert.cxx b/source/openssl/cert.cxx index 05b4fa0..8e6c868 100644 --- a/source/openssl/cert.cxx +++ b/source/openssl/cert.cxx @@ -488,9 +488,9 @@ vector<string> OsslCertificate::getAltName( SubjectAltName type ){ return output; } - int altNamesCount = sk_GENERAL_NAME_num( altNames ); + int altNamesCount = sk_GENERAL_NAMES_num( altNames ); for( int i=0; i < altNamesCount; i++ ){ - GENERAL_NAME * name = sk_GENERAL_NAME_value( altNames, i ); + GENERAL_NAME * name = (GENERAL_NAME *)sk_GENERAL_NAMES_value( altNames, i ); if( name->type == genType ){ ASN1_IA5STRING * ia5 = NULL; @@ -512,7 +512,7 @@ vector<string> OsslCertificate::getAltName( SubjectAltName type ){ } - GENERAL_NAMES_free( altNames ); + sk_GENERAL_NAMES_free( altNames ); altNames = NULL; return output; -- 1.7.2.1