aboutsummaryrefslogtreecommitdiffstats
path: root/src/scepclient/scep.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/scepclient/scep.h')
-rw-r--r--src/scepclient/scep.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/scepclient/scep.h b/src/scepclient/scep.h
index 76bf21033..6227faba4 100644
--- a/src/scepclient/scep.h
+++ b/src/scepclient/scep.h
@@ -1,4 +1,5 @@
/*
+ * Copyright (C) 2012 Tobias Brunner
* Copyright (C) 2005 Jan Hutter, Martin Willi
* Hochschule fuer Technik Rapperswil
*
@@ -16,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,
@@ -76,13 +75,13 @@ 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, int enc_alg,
- certificate_t *signer_cert, int digest_alg,
- private_key_t *private_key);
+ 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);
+ bool http_get_request, chunk_t *response);
err_t scep_parse_response(chunk_t response, chunk_t transID,
- contentInfo_t *data, scep_attributes_t *attrs,
+ pkcs7_t **data, scep_attributes_t *attrs,
certificate_t *signer_cert);
#endif /* _SCEP_H */