|
@@ -52,7 +52,6 @@
|
|
#include "../../ip_addr.h"
|
|
#include "../../ip_addr.h"
|
|
#include "nonce.h"
|
|
#include "nonce.h"
|
|
#include "../../globals.h"
|
|
#include "../../globals.h"
|
|
-#include "../../ser_time.h"
|
|
|
|
#include <assert.h>
|
|
#include <assert.h>
|
|
#ifdef USE_NC
|
|
#ifdef USE_NC
|
|
#include "nc.h"
|
|
#include "nc.h"
|
|
@@ -377,7 +376,7 @@ int check_nonce(auth_body_t* auth, str* secret1, str* secret2,
|
|
without prompting for password */
|
|
without prompting for password */
|
|
return 4;
|
|
return 4;
|
|
}
|
|
}
|
|
- t=ser_time(0);
|
|
|
|
|
|
+ t=time(0);
|
|
if (unlikely((since > t) && ((since-t) > nonce_auth_max_drift) )){
|
|
if (unlikely((since > t) && ((since-t) > nonce_auth_max_drift) )){
|
|
/* the nonce comes from the future, either because of an external
|
|
/* the nonce comes from the future, either because of an external
|
|
* time adjustment, or because it was generated by another host
|
|
* time adjustment, or because it was generated by another host
|