projects
/
oweals
/
ucert.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
usign-exec: change usign_f_* fingerprint argument to char[17]
[oweals/ucert.git]
/
usign-exec.c
diff --git
a/usign-exec.c
b/usign-exec.c
index 436c627356b0f79d64cdc68f475fd266357263e5..294c794b1c50311dce01b6d9b3f065e2bcf2b032 100644
(file)
--- a/
usign-exec.c
+++ b/
usign-exec.c
@@
-94,7
+94,7
@@
int usign_s(const char *msgfile, const char *seckeyfile, const char *sigfile, bo
* call usign -F ... and set fingerprint returned
* return WEXITSTATUS or -1 if fork fails
*/
* call usign -F ... and set fingerprint returned
* return WEXITSTATUS or -1 if fork fails
*/
-static int usign_f(char
*fingerprint
, const char *pubkeyfile, const char *seckeyfile, const char *sigfile, bool quiet) {
+static int usign_f(char
fingerprint[17]
, const char *pubkeyfile, const char *seckeyfile, const char *sigfile, bool quiet) {
int fds[2];
pid_t pid;
int status;
int fds[2];
pid_t pid;
int status;
@@
-162,21
+162,21
@@
static int usign_f(char *fingerprint, const char *pubkeyfile, const char *seckey
/*
* call usign -F -p ...
*/
/*
* call usign -F -p ...
*/
-int usign_f_pubkey(char
*fingerprint
, const char *pubkeyfile, bool quiet) {
+int usign_f_pubkey(char
fingerprint[17]
, const char *pubkeyfile, bool quiet) {
return usign_f(fingerprint, pubkeyfile, NULL, NULL, quiet);
}
/*
* call usign -F -s ...
*/
return usign_f(fingerprint, pubkeyfile, NULL, NULL, quiet);
}
/*
* call usign -F -s ...
*/
-int usign_f_seckey(char
*fingerprint
, const char *seckeyfile, bool quiet) {
+int usign_f_seckey(char
fingerprint[17]
, const char *seckeyfile, bool quiet) {
return usign_f(fingerprint, NULL, seckeyfile, NULL, quiet);
}
/*
* call usign -F -x ...
*/
return usign_f(fingerprint, NULL, seckeyfile, NULL, quiet);
}
/*
* call usign -F -x ...
*/
-int usign_f_sig(char
*fingerprint
, const char *sigfile, bool quiet) {
+int usign_f_sig(char
fingerprint[17]
, const char *sigfile, bool quiet) {
return usign_f(fingerprint, NULL, NULL, sigfile, quiet);
}
return usign_f(fingerprint, NULL, NULL, sigfile, quiet);
}