From 6676c74b6afd6aece8988c19c7b67cda9031efa2 Mon Sep 17 00:00:00 2001 From: Steffen Hansen Date: Wed, 31 Jul 2002 12:37:34 +0000 Subject: new cryptplug function importCertificateFromMem() --- gpgmeplug/cryptplug.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'gpgmeplug/cryptplug.h') diff --git a/gpgmeplug/cryptplug.h b/gpgmeplug/cryptplug.h index 26a7e90e..3c522789 100644 --- a/gpgmeplug/cryptplug.h +++ b/gpgmeplug/cryptplug.h @@ -1849,10 +1849,20 @@ endListCertificates( struct CertIterator* ); Import a certificate that was a result from a search-operation using the startListCertificates(), nextCertificate() funtions. The fingerprint must be passed to identify the key. + + Additional info about the import operation is available in the additional_info parameter. The string must be free'd by the user with free(). */ int -importCertificate( const char* fingerprint ); +importCertificateWithFPR( const char* fingerprint, char** additional_info ); + +/*! + Import a certificate from memory. + + Additional info about the import operation is available in the additional_info parameter. The string must be free'd by the user with free(). +*/ +int +importCertificateFromMem( const char* data, size_t length, char** additional_info ); #ifdef __cplusplus } -- cgit v1.2.3