diff options
author | Werner Koch <[email protected]> | 2007-08-10 16:52:05 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2007-08-10 16:52:05 +0000 |
commit | 74d344a521c8a7a294b8da2cf2647e112fd5b310 (patch) | |
tree | c2cc77b642ad52a26ea4d99a05f82f725f536d11 /sm/server.c | |
parent | Factored common gpgconf constants out (diff) | |
download | gnupg-74d344a521c8a7a294b8da2cf2647e112fd5b310.tar.gz gnupg-74d344a521c8a7a294b8da2cf2647e112fd5b310.zip |
Implemented the chain model for X.509 validation.
Diffstat (limited to '')
-rw-r--r-- | sm/server.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sm/server.c b/sm/server.c index 9896728aa..34326c5eb 100644 --- a/sm/server.c +++ b/sm/server.c @@ -244,6 +244,14 @@ option_handler (assuan_context_t ctx, const char *key, const char *value) int i = *value? atoi (value) : 0; ctrl->with_validation = i; } + else if (!strcmp (key, "validation-model")) + { + int i = gpgsm_parse_validation_model (value); + if ( i >= 0 && i <= 1 ) + ctrl->validation_model = i; + else + return gpg_error (GPG_ERR_ASS_PARAMETER); + } else if (!strcmp (key, "with-key-data")) { opt.with_key_data = 1; |