#ifndef _CERTUTIL_H_ #define _CERTUTIL_H_ /* * certutil.h * this file contains definitions for the certificate processing * functions in certutil.c * * Author(s) * Scott A. Leerssen, leerssen@issl.atl.hp.com * * Protection Notice * Copyright (c) 1997, Scott Leerssen, All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "list.h" typedef list_t cert_t; #ifdef __cplusplus extern "C" { #endif cert_t *cert_decode(u_char *asn_p); cert_t *cert_b64_decode(char *b64_p); void cert_free(cert_t *cert_p); int cert_version(cert_t *cert_p); int cert_serial_number(cert_t *cert_p, u_char **ser_pp); char *cert_signature_alg_id(cert_t *cert_p); char *cert_issuer_dn(cert_t *cert_p); char *cert_validity_start(cert_t *cert_p); char *cert_validity_end(cert_t *cert_p); char *cert_subject_dn(cert_t *cert_p); char *cert_public_key_alg_id(cert_t *cert_p); int cert_public_key(cert_t *cert_p, u_char **pub_key_pp); char *cert_issuer_signature_alg_id(cert_t *cert_p); int cert_issuer_signature(cert_t *cert_p, u_char **issuer_sig_pp); char *cert_UTC2ctime(char *UTCtime); int cert_der_length(u_char *asn_p); int b64decode(char *b64_p, char **data_p); #ifdef __cplusplus } #endif #endif