Skip to content

Commit

Permalink
s4-backupkey: improve variable name
Browse files Browse the repository at this point in the history
Signed-off-by: Arvid Requate <[email protected]>
Reviewed-by: Andrew Bartlett <[email protected]>
Reviewed-by: Garming Sam <[email protected]>
  • Loading branch information
reqa authored and abartlet committed Feb 25, 2015
1 parent 8473f6d commit e25c61c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source4/rpc_server/backupkey/dcesrv_backupkey.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit e25c61c

Please sign in to comment.