aboutsummaryrefslogtreecommitdiffstats
path: root/sm/gpgsm.h
diff options
context:
space:
mode:
Diffstat (limited to 'sm/gpgsm.h')
-rw-r--r--sm/gpgsm.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/sm/gpgsm.h b/sm/gpgsm.h
index 05f06d17b..e96f15743 100644
--- a/sm/gpgsm.h
+++ b/sm/gpgsm.h
@@ -36,8 +36,14 @@
#include "../common/ksba-io-support.h"
#include "../common/compliance.h"
+/* The maximum length of a binary fingerprints. This is used to
+ * provide a static buffer and will be increased if we need to support
+ * longer fingerprints. */
+#define MAX_FINGERPRINT_LEN 32
+
+/* The maximum length of a binary digest. */
+#define MAX_DIGEST_LEN 64 /* Fits for SHA-512 */
-#define MAX_DIGEST_LEN 64
struct keyserver_spec
{
@@ -353,8 +359,8 @@ int gpgsm_create_cms_signature (ctrl_t ctrl,
#define VALIDATE_FLAG_CHAIN_MODEL 2
#define VALIDATE_FLAG_STEED 4
-int gpgsm_walk_cert_chain (ctrl_t ctrl,
- ksba_cert_t start, ksba_cert_t *r_next);
+gpg_error_t gpgsm_walk_cert_chain (ctrl_t ctrl,
+ ksba_cert_t start, ksba_cert_t *r_next);
int gpgsm_is_root_cert (ksba_cert_t cert);
int gpgsm_validate_chain (ctrl_t ctrl, ksba_cert_t cert,
ksba_isotime_t checktime,