Logo Search packages:      
Sourcecode: xca version File versions  Download package


/* vi: set sw=4 ts=4:
 * Copyright (C) 2001 - 2007 Christian Hohnstaedt.
 * All rights reserved.

#include <iostream>
#include <openssl/pem.h>
#include <openssl/stack.h>
#include <openssl/evp.h>
#include <openssl/x509.h>
#include <openssl/pkcs12.h>
#include "pki_key.h"
#include "pki_x509.h"

#ifndef PKI_PKCS12_H
#define PKI_PKCS12_H

class pki_pkcs12: public pki_base
    friend class pki_x509;
    friend class pki_key;
      QString alias;
      pki_x509 *cert;
      pki_key *key;
      STACK_OF(X509) *certstack;
      pem_password_cb *passcb;

      pki_pkcs12(const QString d, pki_x509 *acert, pki_key *akey, pem_password_cb *cb);
      pki_pkcs12(const QString fname, pem_password_cb *cb);

      void addCaCert(pki_x509 *acert);
      pki_key *getKey();
      pki_x509 *getCert();
      pki_x509 *getCa(int x);
      int numCa(); // number of ca certs;
      void writePKCS12(const QString fname);


Generated by  Doxygen 1.6.0   Back to index