Changeset View
Changeset View
Standalone View
Standalone View
b/g10/sign.c
Context not available. | |||||
/* Note: In the old non-agent version the following call used to | /* Note: In the old non-agent version the following call used to | ||||
unprotect the secret key. This is now done on demand by the agent. */ | unprotect the secret key. This is now done on demand by the agent. */ | ||||
if( (rc = build_sk_list (locusr, &sk_list, PUBKEY_USAGE_SIG )) ) | if( (rc = build_sk_list (ctrl, locusr, &sk_list, PUBKEY_USAGE_SIG )) ) | ||||
goto leave; | goto leave; | ||||
if (encryptflag | if (encryptflag | ||||
Context not available. | |||||
* make a clear signature. note that opt.armor is not needed | * make a clear signature. note that opt.armor is not needed | ||||
*/ | */ | ||||
int | int | ||||
clearsign_file( const char *fname, strlist_t locusr, const char *outfile ) | clearsign_file (ctrl_t ctrl, | ||||
const char *fname, strlist_t locusr, const char *outfile ) | |||||
{ | { | ||||
armor_filter_context_t *afx; | armor_filter_context_t *afx; | ||||
progress_filter_context_t *pfx; | progress_filter_context_t *pfx; | ||||
Context not available. | |||||
/* Note: In the old non-agent version the following call used to | /* Note: In the old non-agent version the following call used to | ||||
unprotect the secret key. This is now done on demand by the agent. */ | unprotect the secret key. This is now done on demand by the agent. */ | ||||
if( (rc=build_sk_list( locusr, &sk_list, PUBKEY_USAGE_SIG )) ) | if( (rc=build_sk_list (ctrl, locusr, &sk_list, PUBKEY_USAGE_SIG )) ) | ||||
goto leave; | goto leave; | ||||
/* prepare iobufs */ | /* prepare iobufs */ | ||||
Context not available. | |||||
* FIXME: Far too much code is duplicated - revamp the whole file. | * FIXME: Far too much code is duplicated - revamp the whole file. | ||||
*/ | */ | ||||
int | int | ||||
sign_symencrypt_file (const char *fname, strlist_t locusr) | sign_symencrypt_file (ctrl_t ctrl, const char *fname, strlist_t locusr) | ||||
{ | { | ||||
armor_filter_context_t *afx; | armor_filter_context_t *afx; | ||||
progress_filter_context_t *pfx; | progress_filter_context_t *pfx; | ||||
Context not available. | |||||
/* Note: In the old non-agent version the following call used to | /* Note: In the old non-agent version the following call used to | ||||
unprotect the secret key. This is now done on demand by the agent. */ | unprotect the secret key. This is now done on demand by the agent. */ | ||||
rc = build_sk_list (locusr, &sk_list, PUBKEY_USAGE_SIG); | rc = build_sk_list (ctrl, locusr, &sk_list, PUBKEY_USAGE_SIG); | ||||
if (rc) | if (rc) | ||||
goto leave; | goto leave; | ||||
Context not available. |