/***************************************************************************
                            kde_KSSLPKCS12.h -  description
                             -------------------
    begin                : Wed Feb  6 15:12:26 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Feb  6 15:12:26 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 KDE_KSSLPKCS12
#define KDE_KSSLPKCS12

#include <qtc/qtc_types.h>

#include <kdec/kde_types.h>

void kde_del_KSSLPKCS12( kde_KSSLPKCS12* p );
qt_QString * kde_KSSLPKCS12_name(kde_KSSLPKCS12* instPointer);
qt_QString * kde_KSSLPKCS12_toString(kde_KSSLPKCS12* instPointer);
//void kde_KSSLPKCS12_setCert(kde_KSSLPKCS12* instPointer,PKCS12* c);
int kde_KSSLPKCS12_changePassword(kde_KSSLPKCS12* instPointer,qt_QString * pold, qt_QString * pnew);
//EVP_PKEY* kde_KSSLPKCS12_getPrivateKey(kde_KSSLPKCS12* instPointer);
kde_KSSLCertificate* kde_KSSLPKCS12_getCertificate(kde_KSSLPKCS12* instPointer);
int kde_KSSLPKCS12_toFile(kde_KSSLPKCS12* instPointer,qt_QString * filename);
int kde_KSSLPKCS12_validate(kde_KSSLPKCS12* instPointer);
int kde_KSSLPKCS12_revalidate(kde_KSSLPKCS12* instPointer);
int kde_KSSLPKCS12_isValid(kde_KSSLPKCS12* instPointer);
kde_KSSLPKCS12* kde_KSSLPKCS12_fromString( qt_QString * base64, qt_QString * password);
kde_KSSLPKCS12* kde_KSSLPKCS12_loadCertFile( qt_QString * filename, qt_QString * password);
kde_KSSLPKCS12 * kde_new_KSSLPKCS12();
int kde_KSSLPKCS12_parse(kde_KSSLPKCS12* instPointer,qt_QString * pass);

#endif
