diff options
author | Yves-Alexis Perez <corsac@debian.org> | 2013-01-02 14:18:20 +0100 |
---|---|---|
committer | Yves-Alexis Perez <corsac@debian.org> | 2013-01-02 14:18:20 +0100 |
commit | c1343b3278cdf99533b7902744d15969f9d6fdc1 (patch) | |
tree | d5ed3dc5677a59260ec41cd39bb284d3e94c91b3 /src/scepclient/scep.h | |
parent | b34738ed08c2227300d554b139e2495ca5da97d6 (diff) | |
download | vyos-strongswan-c1343b3278cdf99533b7902744d15969f9d6fdc1.tar.gz vyos-strongswan-c1343b3278cdf99533b7902744d15969f9d6fdc1.zip |
Imported Upstream version 5.0.1
Diffstat (limited to 'src/scepclient/scep.h')
-rw-r--r-- | src/scepclient/scep.h | 46 |
1 files changed, 19 insertions, 27 deletions
diff --git a/src/scepclient/scep.h b/src/scepclient/scep.h index f64c6b1cc..6227faba4 100644 --- a/src/scepclient/scep.h +++ b/src/scepclient/scep.h @@ -1,11 +1,5 @@ -/** - * @file scep.h - * @brief SCEP specific functions - * - * Contains functions to build and parse SCEP requests and replies - */ - /* + * Copyright (C) 2012 Tobias Brunner * Copyright (C) 2005 Jan Hutter, Martin Willi * Hochschule fuer Technik Rapperswil * @@ -23,11 +17,9 @@ #ifndef _SCEP_H #define _SCEP_H +#include <crypto/pkcs7.h> #include <credentials/certificates/certificate.h> -#include "../pluto/defs.h" -#include "../pluto/pkcs7.h" - /* supported SCEP operation types */ typedef enum { SCEP_PKI_OPERATION, @@ -74,22 +66,22 @@ typedef struct { extern const scep_attributes_t empty_scep_attributes; -extern bool parse_attributes(chunk_t blob, scep_attributes_t *attrs); -extern void scep_generate_transaction_id(public_key_t *key, - chunk_t *transID, - chunk_t *serialNumber); -extern chunk_t scep_generate_pkcs10_fingerprint(chunk_t pkcs10); -extern chunk_t scep_transId_attribute(chunk_t transaction_id); -extern chunk_t scep_messageType_attribute(scep_msg_t m); -extern chunk_t scep_senderNonce_attribute(void); -extern chunk_t scep_build_request(chunk_t data, chunk_t transID, scep_msg_t msg, - certificate_t *enc_cert, int enc_alg, - certificate_t *signer_cert, int digest_alg, - private_key_t *private_key); -extern bool scep_http_request(const char *url, chunk_t pkcs7, scep_op_t op, - bool http_get_request, chunk_t *response); -extern err_t scep_parse_response(chunk_t response, chunk_t transID, - contentInfo_t *data, scep_attributes_t *attrs, - certificate_t *signer_cert); +bool parse_attributes(chunk_t blob, scep_attributes_t *attrs); +void scep_generate_transaction_id(public_key_t *key, + chunk_t *transID, + chunk_t *serialNumber); +chunk_t scep_generate_pkcs10_fingerprint(chunk_t pkcs10); +chunk_t scep_transId_attribute(chunk_t transaction_id); +chunk_t scep_messageType_attribute(scep_msg_t m); +chunk_t scep_senderNonce_attribute(void); +chunk_t scep_build_request(chunk_t data, chunk_t transID, scep_msg_t msg, + certificate_t *enc_cert, encryption_algorithm_t enc_alg, + size_t key_size, certificate_t *signer_cert, + hash_algorithm_t digest_alg, private_key_t *private_key); +bool scep_http_request(const char *url, chunk_t pkcs7, scep_op_t op, + bool http_get_request, chunk_t *response); +err_t scep_parse_response(chunk_t response, chunk_t transID, + pkcs7_t **data, scep_attributes_t *attrs, + certificate_t *signer_cert); #endif /* _SCEP_H */ |