s4-backupkey: improve variable name
authorArvid Requate <requate@univention.de>
Tue, 8 Jul 2014 14:12:13 +0000 (16:12 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 25 Feb 2015 00:08:11 +0000 (01:08 +0100)
Signed-off-by: Arvid Requate <requate@univention.de>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
source4/rpc_server/backupkey/dcesrv_backupkey.c

index f08eb832a6be8a2f61edbfc15d31d77fc477245b..4e4beab0c4032a718a19d6af800fa550e6423171 100644 (file)
@@ -999,7 +999,7 @@ static WERROR generate_bkrp_cert(TALLOC_CTX *ctx, struct dcesrv_call_state *dce_
        char *secret_name;
        struct bkrp_exported_RSA_key_pair keypair;
        enum ndr_err_code ndr_err;
-       uint32_t nb_days_validity = 3600 * 24 * 365;
+       uint32_t nb_seconds_validity = 3600 * 24 * 365;
 
        DEBUG(6, ("Trying to generate a certificate\n"));
        hx509_context_init(&hctx);
@@ -1017,7 +1017,7 @@ static WERROR generate_bkrp_cert(TALLOC_CTX *ctx, struct dcesrv_call_state *dce_
                return WERR_INVALID_DATA;
        }
 
-       w_err = self_sign_cert(ctx, &hctx, &req, nb_days_validity, &pk, &cert, &blob);
+       w_err = self_sign_cert(ctx, &hctx, &req, nb_seconds_validity, &pk, &cert, &blob);
        if (!W_ERROR_IS_OK(w_err)) {
                hx509_private_key_free(&pk);
                hx509_context_free(&hctx);