Lines Matching refs:tstamp
317 tstamp_t tstamp; /* NTP timestamp */ in make_keylist() local
332 tstamp = crypto_time(); in make_keylist()
371 lifetime < 0 || tstamp == 0) in make_keylist()
387 vp->tstamp = htonl(tstamp); in make_keylist()
388 vp->fstamp = hostval.tstamp; in make_keylist()
391 if (tstamp != 0) { in make_keylist()
406 peer->keynumber, keyid, cookie, ntohl(vp->tstamp), in make_keylist()
878 ntohl(ep->tstamp), ntohl(ep->fstamp)); in crypto_recv()
919 if (ep->tstamp == 0) in crypto_recv()
926 peer->recval.tstamp = ep->tstamp; in crypto_recv()
936 bp->key, ntohl(ep->tstamp), in crypto_recv()
1004 tai_leap.tstamp = ep->tstamp; in crypto_recv()
1108 tstamp_t tstamp; in crypto_xmit() local
1137 tstamp = crypto_time(); in crypto_xmit()
1157 vtemp.tstamp = ep->tstamp; in crypto_xmit()
1169 (void)ntpcal_ntp_to_date(&tscal, tstamp, NULL); in crypto_xmit()
1238 if (tstamp == 0) in crypto_xmit()
1441 tstamp_t tstamp, tstamp1 = 0; /* timestamp */ in crypto_verify() local
1506 tstamp = ntohl(ep->tstamp); in crypto_verify()
1508 if (tstamp == 0) in crypto_verify()
1511 if (tstamp < fstamp) in crypto_verify()
1515 tstamp1 = ntohl(vp->tstamp); in crypto_verify()
1518 if (tstamp < tstamp1) in crypto_verify()
1521 if ((tstamp < fstamp1 || fstamp < fstamp1)) in crypto_verify()
1556 EVP_VerifyUpdate(ctx, (u_char *)&ep->tstamp, vallen + 12); in crypto_verify()
1589 tstamp_t tstamp; /* NTP timestamp */ in crypto_encrypt() local
1607 tstamp = crypto_time(); in crypto_encrypt()
1608 vp->tstamp = htonl(tstamp); in crypto_encrypt()
1609 vp->fstamp = hostval.tstamp; in crypto_encrypt()
1624 if (tstamp == 0) in crypto_encrypt()
1630 EVP_SignUpdate(ctx, (u_char *)&vp->tstamp, 12); in crypto_encrypt()
1718 tstamp_t tstamp; /* NTP timestamp */ in crypto_args() local
1723 tstamp = crypto_time(); in crypto_args()
1739 ep->tstamp = htonl(tstamp); in crypto_args()
1740 ep->fstamp = hostval.tstamp; in crypto_args()
1786 ep->tstamp = vp->tstamp; in crypto_send()
1850 hostval.tstamp = htonl(crypto_time()); in crypto_update()
1851 if (hostval.tstamp == 0) in crypto_update()
1862 pubkey.tstamp = hostval.tstamp; in crypto_update()
1882 cp->cert.tstamp = hostval.tstamp; in crypto_update()
1900 tai_leap.tstamp = hostval.tstamp; in crypto_update()
1947 ntohl(hostval.tstamp)); in crypto_update()
2010 l_fp tstamp; /* NTP time */ in crypto_time() local
2012 L_CLR(&tstamp); in crypto_time()
2014 get_systime(&tstamp); in crypto_time()
2015 return (tstamp.l_ui); in crypto_time()
2177 tstamp_t tstamp; in crypto_alice() local
2211 tstamp = crypto_time(); in crypto_alice()
2212 vp->tstamp = htonl(tstamp); in crypto_alice()
2217 if (tstamp == 0) in crypto_alice()
2223 EVP_SignUpdate(ctx, (u_char *)&vp->tstamp, 12); in crypto_alice()
2252 tstamp_t tstamp; /* NTP timestamp */ in crypto_bob() local
2321 tstamp = crypto_time(); in crypto_bob()
2322 vp->tstamp = htonl(tstamp); in crypto_bob()
2329 if (tstamp == 0) in crypto_bob()
2336 EVP_SignUpdate(ctx, (u_char *)&vp->tstamp, 12); in crypto_bob()
2509 tstamp_t tstamp; in crypto_alice2() local
2541 tstamp = crypto_time(); in crypto_alice2()
2542 vp->tstamp = htonl(tstamp); in crypto_alice2()
2547 if (tstamp == 0) in crypto_alice2()
2553 EVP_SignUpdate(ctx, (u_char *)&vp->tstamp, 12); in crypto_alice2()
2582 tstamp_t tstamp; /* NTP timestamp */ in crypto_bob2() local
2644 tstamp = crypto_time(); in crypto_bob2()
2645 vp->tstamp = htonl(tstamp); in crypto_bob2()
2652 if (tstamp == 0) in crypto_bob2()
2658 EVP_SignUpdate(ctx, (u_char *)&vp->tstamp, 12); in crypto_bob2()
2853 tstamp_t tstamp; in crypto_alice3() local
2885 tstamp = crypto_time(); in crypto_alice3()
2886 vp->tstamp = htonl(tstamp); in crypto_alice3()
2891 if (tstamp == 0) in crypto_alice3()
2897 EVP_SignUpdate(ctx, (u_char *)&vp->tstamp, 12); in crypto_alice3()
2925 tstamp_t tstamp; /* NTP timestamp */ in crypto_bob3() local
2989 tstamp = crypto_time(); in crypto_bob3()
2990 vp->tstamp = htonl(tstamp); in crypto_bob3()
3004 if (tstamp == 0) in crypto_bob3()
3010 EVP_SignUpdate(ctx, (u_char *)&vp->tstamp, 12); in crypto_bob3()
3163 tstamp_t tstamp; /* NTP timestamp */ in cert_sign() local
3175 tstamp = crypto_time(); in cert_sign()
3176 if (tstamp == 0) in cert_sign()
3207 ASN1_INTEGER_set(serial, tstamp); in cert_sign()
3228 (void)ntpcal_ntp_to_date(&tscal, tstamp, NULL); in cert_sign()
3249 vp->tstamp = htonl(tstamp); in cert_sign()
3256 if (tstamp != 0) { in cert_sign()