Mercurial > dropbear
comparison svr-authpasswd.c @ 1295:750ec4ec4cbe
Convert #ifdef to #if, other build changes
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 04 May 2016 15:33:40 +0200 |
parents | aaf576b27a10 |
children | 5d2d1021ca00 |
comparison
equal
deleted
inserted
replaced
1294:56aba7dedbea | 1295:750ec4ec4cbe |
---|---|
29 #include "buffer.h" | 29 #include "buffer.h" |
30 #include "dbutil.h" | 30 #include "dbutil.h" |
31 #include "auth.h" | 31 #include "auth.h" |
32 #include "runopts.h" | 32 #include "runopts.h" |
33 | 33 |
34 #ifdef ENABLE_SVR_PASSWORD_AUTH | 34 #if DROPBEAR_SVR_PASSWORD_AUTH |
35 | 35 |
36 /* not constant time when strings are differing lengths. | 36 /* not constant time when strings are differing lengths. |
37 string content isn't leaked, and crypt hashes are predictable length. */ | 37 string content isn't leaked, and crypt hashes are predictable length. */ |
38 static int constant_time_strcmp(const char* a, const char* b) { | 38 static int constant_time_strcmp(const char* a, const char* b) { |
39 size_t la = strlen(a); | 39 size_t la = strlen(a); |