| .. | .. |
|---|
| 124 | 124 | |
|---|
| 125 | 125 | /* it got through unscathed. Make sure the context is unexpired */ |
|---|
| 126 | 126 | |
|---|
| 127 | | - now = get_seconds(); |
|---|
| 127 | + now = ktime_get_real_seconds(); |
|---|
| 128 | 128 | |
|---|
| 129 | 129 | if (now > ctx->endtime) |
|---|
| 130 | 130 | return GSS_S_CONTEXT_EXPIRED; |
|---|
| .. | .. |
|---|
| 149 | 149 | char cksumdata[GSS_KRB5_MAX_CKSUM_LEN]; |
|---|
| 150 | 150 | struct xdr_netobj cksumobj = {.len = sizeof(cksumdata), |
|---|
| 151 | 151 | .data = cksumdata}; |
|---|
| 152 | | - s32 now; |
|---|
| 152 | + time64_t now; |
|---|
| 153 | 153 | u8 *ptr = read_token->data; |
|---|
| 154 | 154 | u8 *cksumkey; |
|---|
| 155 | 155 | u8 flags; |
|---|
| .. | .. |
|---|
| 194 | 194 | return GSS_S_BAD_SIG; |
|---|
| 195 | 195 | |
|---|
| 196 | 196 | /* it got through unscathed. Make sure the context is unexpired */ |
|---|
| 197 | | - now = get_seconds(); |
|---|
| 197 | + now = ktime_get_real_seconds(); |
|---|
| 198 | 198 | if (now > ctx->endtime) |
|---|
| 199 | 199 | return GSS_S_CONTEXT_EXPIRED; |
|---|
| 200 | 200 | |
|---|
| .. | .. |
|---|
| 218 | 218 | BUG(); |
|---|
| 219 | 219 | case ENCTYPE_DES_CBC_RAW: |
|---|
| 220 | 220 | case ENCTYPE_DES3_CBC_RAW: |
|---|
| 221 | | - case ENCTYPE_ARCFOUR_HMAC: |
|---|
| 222 | 221 | return gss_verify_mic_v1(ctx, message_buffer, read_token); |
|---|
| 223 | 222 | case ENCTYPE_AES128_CTS_HMAC_SHA1_96: |
|---|
| 224 | 223 | case ENCTYPE_AES256_CTS_HMAC_SHA1_96: |
|---|