From: Martin Willi Date: Wed, 19 Mar 2008 14:21:56 +0000 (-0000) Subject: removed unimplemented private/public key function declarations X-Git-Tag: 4.2.0~118 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de7062a280990131df24e2ccb2559fb8f33ca145;p=thirdparty%2Fstrongswan.git removed unimplemented private/public key function declarations --- diff --git a/src/libstrongswan/credentials/keys/private_key.h b/src/libstrongswan/credentials/keys/private_key.h index fbb5abf020..e6987459cc 100644 --- a/src/libstrongswan/credentials/keys/private_key.h +++ b/src/libstrongswan/credentials/keys/private_key.h @@ -111,33 +111,4 @@ struct private_key_t { void (*destroy)(private_key_t *this); }; -/** - * Read a private key from a file. - * - * @param type type of the key - * @param filename filename to read key from - * @param passphrase passphrase to decrypt an encrypted key - * @return loaded private key, NULL if failed - */ -private_key_t *private_key_create_from_file(key_type_t type, char *filename, - chunk_t passphrase); - -/** - * Create a private key from a chunk. - * - * @param type type of the key - * @param chunk chunk to create key from - * @return loaded private key, NULL if failed - */ -private_key_t *private_key_create_from_chunk(key_type_t type, chunk_t chunk); - -/** - * Generate a new private key. - * - * @param type type of the key - * @param size key size in bytes - * @return generated private key, NULL if failed - */ -private_key_t *private_key_create_generated(key_type_t type, size_t size); - #endif /* PRIVATE_KEY_H_ @} */ diff --git a/src/libstrongswan/credentials/keys/public_key.h b/src/libstrongswan/credentials/keys/public_key.h index 2083db5a11..02a4410ff0 100644 --- a/src/libstrongswan/credentials/keys/public_key.h +++ b/src/libstrongswan/credentials/keys/public_key.h @@ -142,22 +142,4 @@ struct public_key_t { void (*destroy)(public_key_t *this); }; -/** - * Read a public key from a file. - * - * @param type type of the key - * @param filename filename to read key from - * @return loaded public key, NULL if failed - */ -public_key_t *public_key_create_from_file(key_type_t type, char *filename); - -/** - * Create a public key from a chunk. - * - * @param type type of the key - * @param chunk chunk to create key from - * @return loaded public key, NULL if failed - */ -public_key_t *public_key_create_from_chunk(key_type_t type, chunk_t chunk); - #endif /* PUBLIC_KEY_H_ @} */