conversion from 8 spaces to 4 spaces per tab
This commit is contained in:
+19
-19
@@ -26,31 +26,31 @@
|
||||
*/
|
||||
#define PRIVATE_KEY_PATH IPSEC_CONFDIR "/ipsec.d/private"
|
||||
#define HOST_CERT_PATH IPSEC_CONFDIR "/ipsec.d/certs"
|
||||
#define CA_CERT_PATH IPSEC_CONFDIR "/ipsec.d/cacerts"
|
||||
#define A_CERT_PATH IPSEC_CONFDIR "/ipsec.d/acerts"
|
||||
#define AA_CERT_PATH IPSEC_CONFDIR "/ipsec.d/aacerts"
|
||||
#define OCSP_CERT_PATH IPSEC_CONFDIR "/ipsec.d/ocspcerts"
|
||||
#define CRL_PATH IPSEC_CONFDIR "/ipsec.d/crls"
|
||||
#define REQ_PATH IPSEC_CONFDIR "/ipsec.d/reqs"
|
||||
#define CA_CERT_PATH IPSEC_CONFDIR "/ipsec.d/cacerts"
|
||||
#define A_CERT_PATH IPSEC_CONFDIR "/ipsec.d/acerts"
|
||||
#define AA_CERT_PATH IPSEC_CONFDIR "/ipsec.d/aacerts"
|
||||
#define OCSP_CERT_PATH IPSEC_CONFDIR "/ipsec.d/ocspcerts"
|
||||
#define CRL_PATH IPSEC_CONFDIR "/ipsec.d/crls"
|
||||
#define REQ_PATH IPSEC_CONFDIR "/ipsec.d/reqs"
|
||||
|
||||
/* advance warning of imminent expiry of
|
||||
* cacerts, public keys, and crls
|
||||
*/
|
||||
#define CA_CERT_WARNING_INTERVAL 30 /* days */
|
||||
#define OCSP_CERT_WARNING_INTERVAL 30 /* days */
|
||||
#define PUBKEY_WARNING_INTERVAL 7 /* days */
|
||||
#define CRL_WARNING_INTERVAL 7 /* days */
|
||||
#define ACERT_WARNING_INTERVAL 1 /* day */
|
||||
#define CA_CERT_WARNING_INTERVAL 30 /* days */
|
||||
#define OCSP_CERT_WARNING_INTERVAL 30 /* days */
|
||||
#define PUBKEY_WARNING_INTERVAL 7 /* days */
|
||||
#define CRL_WARNING_INTERVAL 7 /* days */
|
||||
#define ACERT_WARNING_INTERVAL 1 /* day */
|
||||
|
||||
/* certificate access structure
|
||||
* currently X.509 and OpenPGP certificates are supported
|
||||
*/
|
||||
typedef struct {
|
||||
u_char type;
|
||||
union {
|
||||
x509cert_t *x509;
|
||||
pgpcert_t *pgp;
|
||||
} u;
|
||||
u_char type;
|
||||
union {
|
||||
x509cert_t *x509;
|
||||
pgpcert_t *pgp;
|
||||
} u;
|
||||
} cert_t;
|
||||
|
||||
/* used for initialization */
|
||||
@@ -62,12 +62,12 @@ extern const cert_t empty_cert;
|
||||
extern bool no_cr_send;
|
||||
|
||||
extern err_t load_rsa_private_key(const char* filename, prompt_pass_t *pass
|
||||
, RSA_private_key_t *key);
|
||||
, RSA_private_key_t *key);
|
||||
extern chunk_t get_mycert(cert_t cert);
|
||||
extern bool load_coded_file(const char *filename, prompt_pass_t *pass
|
||||
, const char *type, chunk_t *blob, bool *pgp);
|
||||
, const char *type, chunk_t *blob, bool *pgp);
|
||||
extern bool load_cert(const char *filename, const char *label
|
||||
, cert_t *cert);
|
||||
, cert_t *cert);
|
||||
extern bool load_host_cert(const char *filename, cert_t *cert);
|
||||
extern bool load_ca_cert(const char *filename, cert_t *cert);
|
||||
extern bool same_cert(const cert_t *a, const cert_t *b);
|
||||
|
||||
Reference in New Issue
Block a user