Updated pgp plugin to the new builder API

This commit is contained in:
Martin Willi
2009-09-10 16:20:20 +02:00
parent de408caf93
commit 43224e9527
3 changed files with 53 additions and 132 deletions
+9 -6
View File
@@ -21,22 +21,25 @@
#ifndef PGP_BUILDER_H_
#define PGP_BUILDER_H_
#include <credentials/keys/public_key.h>
#include <credentials/builder.h>
#include <credentials/keys/private_key.h>
/**
* Create the builder for a generic or an RSA public key using PGP decoding.
* Load a generic or an RSA public key using PGP decoding.
*
* @param type type of the key, either KEY_ANY or KEY_RSA
* @return builder instance
* @param args builder_part_t argument list
* @return private key, NULL if failed
*/
builder_t *pgp_public_key_builder(key_type_t type);
public_key_t *pgp_public_key_load(key_type_t type, va_list args);
/**
* Create the builder for a generic or RSA private key using PGP decoding.
* Load a generic or RSA private key using PGP decoding.
*
* @param type type of the key, either KEY_ANY or KEY_RSA
* @param args builder_part_t argument list
* @return builder instance
*/
builder_t *pgp_private_key_builder(key_type_t type);
private_key_t *pgp_private_key_load(key_type_t type, va_list args);
#endif /** PGP_BUILDER_H_ @}*/