cleanups for SSL/TLS support

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35596 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2012-09-23 13:11:15 +00:00
parent f802c5ab4d
commit 83b4735655
6 changed files with 50 additions and 9 deletions

View file

@ -45,6 +45,13 @@
#import "GSSocketStream.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
/* Perhaps thse should be elsewhere ... maybe in a new file along with
* the gnutls infrastructure.
*/
NSString * const GSTLSCertificateFileKey = @"GSTLSCertificateFileKey";
NSString * const GSTLSPrivateKeyFileKey = @"GSTLSPrivateKeyFile";
NSString * const GSTLSPrivateKeyPasswordKey = @"GSTLSPrivateKeyPassword";
#ifndef SHUT_RD
# ifdef SD_RECEIVE
# define SHUT_RD SD_RECEIVE
@ -490,10 +497,6 @@ _verify_certificate_callback (gnutls_session_t session)
return 0;
}
NSString * const GSTLSCertificateFileKey = @"GSTLSCertificateFileKey";
NSString * const GSTLSPrivateKeyFileKey = @"GSTLSPrivateKeyFile";
NSString * const GSTLSPrivateKeyPasswordKey = @"GSTLSPrivateKeyPassword";
/* This class is used to ensure that the GNUTLS system is initialised
* and thread-safe.
*/