mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
bug fixes
This commit is contained in:
parent
23b7b9a77b
commit
158a69aff7
13 changed files with 57 additions and 32 deletions
|
@ -470,7 +470,7 @@ cmd_sethash (assuan_context_t ctx, char *line)
|
|||
char *endp;
|
||||
int algo;
|
||||
|
||||
/* parse the algo number and check it */
|
||||
/* Parse the algo number and check it. */
|
||||
algo = (int)strtoul (line, &endp, 10);
|
||||
for (line = endp; *line == ' ' || *line == '\t'; line++)
|
||||
;
|
||||
|
@ -478,7 +478,7 @@ cmd_sethash (assuan_context_t ctx, char *line)
|
|||
return set_error (GPG_ERR_UNSUPPORTED_ALGORITHM, NULL);
|
||||
ctrl->digest.algo = algo;
|
||||
|
||||
/* parse the hash value */
|
||||
/* Parse the hash value. */
|
||||
rc = parse_hexstring (ctx, line, &n);
|
||||
if (rc)
|
||||
return rc;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue