X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Futils%2Fgss%2Flgss_sk_utils.c;h=bbef525099d9bf06eb20b0d74983ce15748efa55;hp=04133f145e23f4689cf8c5578de9a9951c4ce8a2;hb=0ab950762cdec28636b6033c50a2e563c28ba954;hpb=b19b318b5e74e76b3fc5b15c796666d04df62466 diff --git a/lustre/utils/gss/lgss_sk_utils.c b/lustre/utils/gss/lgss_sk_utils.c index 04133f1..bbef525 100644 --- a/lustre/utils/gss/lgss_sk_utils.c +++ b/lustre/utils/gss/lgss_sk_utils.c @@ -92,7 +92,7 @@ static int lgss_sk_using_cred(struct lgss_cred *cred) uint32_t flags; int rc; - rc = sk_gen_params(skc); + rc = sk_gen_params(skc, 0); if (rc) return rc; @@ -176,7 +176,7 @@ static int lgss_sk_validate_cred(struct lgss_cred *cred, gss_buffer_desc *token, } rc = sk_compute_dh_key(skc, &bufs[SK_RESP_PUB_KEY]); - if (rc == GSS_S_DEFECTIVE_TOKEN) { + if (rc == GSS_S_BAD_QOP) { /* Defective token for short key means we need to retry * because there is a chance that the parameters generated * resulted in a key that is 1 byte short */