/***************************************************************************
                            KSSLCertificateHome.h -  description
                             -------------------
    begin                : Fri Mar  8 13:55:08 2002
    copyright            : (C) 2000-2002 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Fri Mar  8 13:55:08 2002, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This library is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU Library General Public License as       *
 *   published by the Free Software Foundation; either version 2 of the    *
 *   License, or (at your option) any later version.                       *
 *                                                                         *
 ***************************************************************************/

#ifndef KSSLCERTIFICATEHOME_H
#define KSSLCERTIFICATEHOME_H

#include <Foundation/NSObject.h>
#include <Foundation/NSString.h>
#include <qtobjc/QtSupport.h>

@class KSSLPKCS12;

@interface  KSSLCertificateHome : NSObject <QtSupport>
{
@private
	void * _qt;
	BOOL  _allocatedInObjcWorld;
}
//+ (KSSLPKCS12*) getCertificateByHost: (NSString *)host password: (NSString *)password aa: (int*)aa;
+ (KSSLPKCS12*) getCertificateByName: (NSString *)name password: (NSString *)password;
+ (KSSLPKCS12*) getCertificateByName: (NSString *)name;
//+ (NSString *) getDefaultCertificateName: (NSString *)host aa: (int*)aa;
//+ (NSString *) getDefaultCertificateName: (int*)aa;
//+ (KSSLPKCS12*) getDefaultCertificate: (NSString *)password aa: (int*)aa;
//+ (KSSLPKCS12*) getDefaultCertificate: (NSString *)password ;
//+ (KSSLPKCS12*) getDefaultCertificate: (int*)aa;
//+ (KSSLPKCS12*) getDefaultCertificate;
+ (BOOL) hasCertificateByName: (NSString *)name;
+ setDefaultCertificate: (NSString *)name send: (BOOL)send prompt: (BOOL)prompt;
+ setDefaultCertificate: (NSString *)name ;
//+ setDefaultCertificate: (KSSLPKCS12*)cert send: (BOOL)send prompt: (BOOL)prompt;
//+ setDefaultCertificate: (KSSLPKCS12*)cert ;
+ setDefaultCertificate: (NSString *)name host: (NSString *)host send: (BOOL)send prompt: (BOOL)prompt;
+ setDefaultCertificate: (NSString *)name host: (NSString *)host ;
//+ setDefaultCertificate: (KSSLPKCS12*)cert host: (NSString *)host send: (BOOL)send prompt: (BOOL)prompt;
//+ setDefaultCertificate: (KSSLPKCS12*)cert host: (NSString *)host ;
+ (BOOL) addCertificate: (NSString *)filename password: (NSString *)password storePass: (BOOL)storePass;
+ (BOOL) addCertificate: (NSString *)filename password: (NSString *)password ;
+ addCertificate: (KSSLPKCS12*)cert passToStore: (NSString *)passToStore;
+ addCertificate: (KSSLPKCS12*)cert ;
+ (NSArray *) getCertificateList;
+ (int) AuthNone;
+ (int) AuthSend;
+ (int) AuthPrompt;
+ (int) AuthDont;
@end

#endif
