diff options
author | Steffen Hansen <[email protected]> | 2002-06-25 17:42:21 +0000 |
---|---|---|
committer | Steffen Hansen <[email protected]> | 2002-06-25 17:42:21 +0000 |
commit | 3debbf008e716a981a44c2f9024623a6064618b3 (patch) | |
tree | b17ced156655e6373f8a82092144093f6f7506e3 /gpgmeplug/cryptplug.h | |
parent | Have additional secretOnly parameter at the findCertificates() function to al... (diff) | |
download | gpgme-3debbf008e716a981a44c2f9024623a6064618b3.tar.gz gpgme-3debbf008e716a981a44c2f9024623a6064618b3.zip |
importCertificate( const char* fpr )
Diffstat (limited to 'gpgmeplug/cryptplug.h')
-rw-r--r-- | gpgmeplug/cryptplug.h | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/gpgmeplug/cryptplug.h b/gpgmeplug/cryptplug.h index 95b9433c..27655f5b 100644 --- a/gpgmeplug/cryptplug.h +++ b/gpgmeplug/cryptplug.h @@ -1820,7 +1820,7 @@ struct CertificateInfo { Example that runs through certs matching "Steffen": \verbatim struct CertificateInfo* info; - struct CertIterator* it = startListCertificates("Steffen"); + struct CertIterator* it = startListCertificates("Steffen", 0 ); while( nextCertificate( it, &info ) == GPGME_No_Error && info ) { do something with info. dont free() it, the struct will be reused @@ -1829,10 +1829,23 @@ struct CertificateInfo { endListCertificates( it ); \endverbatim */ -struct CertIterator* startListCertificates( const char* pattern, int remote ); -int nextCertificate( struct CertIterator*, struct CertificateInfo** result ); -void endListCertificates( struct CertIterator* ); +struct CertIterator* +startListCertificates( const char* pattern, int remote ); +int +nextCertificate( struct CertIterator*, struct CertificateInfo** result ); + +void +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. + */ + +int +importCertificate( const char* fingerprint ); #ifdef __cplusplus } |