pam_pkcs11 0.6.8

- Main Page
- Data Structures
- Files
- Directories

- File List
- Globals

cert_st.h
Go to the documentation of this file.

    00001 /*
    00002  * PKCS #11 PAM Login Module
    00003  * Copyright (C) 2003-2004 Mario Strasser <mast@gmx.net>
    00004  * Copyright (C) 2005 Juan Antonio Martinez <jonsito@teleline.es>
    00005  *
    00006  * This library is free software; you can redistribute it and/or
    00007  * modify it under the terms of the GNU Lesser General Public
    00008  * License as published by the Free Software Foundation; either
    00009  * version 2.1 of the License, or (at your option) any later version.
    00010  *
    00011  * This library is distributed in the hope that it will be useful,
    00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00014  * Lesser General Public License for more details.
    00015  *
    00016  * $Id$
    00017  */
    00018
    00019 #ifndef _CERT_ST_H
    00020 #define _CERT_ST_H
    00021
    00022 #ifdef HAVE_CONFIG_H
    00023 #include <config.h>
    00024 #endif
    00025
    00026 typedef struct cert_policy_st cert_policy;
    00027
    00028 #ifdef HAVE_NSS
    00029 #include <cert.h>
    00030 #include <secoidt.h>
    00031 typedef SECOidTag ALGORITHM_TYPE;
    00032 #define ALGORITHM_NULL  SEC_OID_UNKNOWN
    00033 /* we really should make a neutral define for this */
    00034 #define X509 CERTCertificate
    00035 #else
    00036 #include <openssl/x509.h>
    00037 typedef const char *ALGORITHM_TYPE;
    00038 #define ALGORITHM_NULL  NULL
    00039 #endif
    00040
    00041
    00042 #endif /* _CERT_ST_H */