Searched refs:ad_timestamp (Results 1 – 2 of 2) sorted by relevance
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | auth_des.c | 78 struct timeval ad_timestamp; /* timestamp sent */ member 260 (void) gettimeofday(&ad->ad_timestamp, NULL); in authdes_marshal() 261 ad->ad_timestamp.tv_sec += ad->ad_timediff.tv_sec; in authdes_marshal() 262 ad->ad_timestamp.tv_usec += ad->ad_timediff.tv_usec; in authdes_marshal() 263 while (ad->ad_timestamp.tv_usec >= USEC_PER_SEC) { in authdes_marshal() 264 ad->ad_timestamp.tv_usec -= USEC_PER_SEC; in authdes_marshal() 265 ad->ad_timestamp.tv_sec++; in authdes_marshal() 273 IXDR_PUT_INT32(ixdr, ad->ad_timestamp.tv_sec); in authdes_marshal() 274 IXDR_PUT_INT32(ixdr, ad->ad_timestamp.tv_usec); in authdes_marshal() 379 if (memcmp(&ad->ad_timestamp, &verf.adv_timestamp, in authdes_validate()
|
/illumos-gate/usr/src/uts/common/rpc/sec/ |
H A D | auth_des.c | 95 struct timeval ad_timestamp; /* timestamp sent */ member 239 (void) gettimeofday(&ad->ad_timestamp, (struct timezone *)NULL); in authdes_marshal() 240 ad->ad_timestamp.tv_sec += ad->ad_timediff.tv_sec; in authdes_marshal() 241 ad->ad_timestamp.tv_usec += ad->ad_timediff.tv_usec; in authdes_marshal() 242 if (ad->ad_timestamp.tv_usec >= MILLION) { in authdes_marshal() 243 ad->ad_timestamp.tv_usec -= MILLION; in authdes_marshal() 244 ad->ad_timestamp.tv_sec += 1; in authdes_marshal() 252 IXDR_PUT_INT32(ixdr, ad->ad_timestamp.tv_sec); in authdes_marshal() 253 IXDR_PUT_INT32(ixdr, ad->ad_timestamp.tv_usec); in authdes_marshal() 354 if (bcmp((char *)&ad->ad_timestamp, (char *)&verf.adv_timestamp, in authdes_validate()
|