lak.c | lak.c | |||
---|---|---|---|---|
skipping to change at line 58 | skipping to change at line 58 | |||
#endif | #endif | |||
#ifdef HAVE_OPENSSL | #ifdef HAVE_OPENSSL | |||
#ifndef OPENSSL_DISABLE_OLD_DES_SUPPORT | #ifndef OPENSSL_DISABLE_OLD_DES_SUPPORT | |||
#define OPENSSL_DISABLE_OLD_DES_SUPPORT | #define OPENSSL_DISABLE_OLD_DES_SUPPORT | |||
#endif | #endif | |||
#include <openssl/evp.h> | #include <openssl/evp.h> | |||
#include <openssl/des.h> | #include <openssl/des.h> | |||
#endif | #endif | |||
#define LDAP_DEPRECATED 1 | ||||
#include <ldap.h> | #include <ldap.h> | |||
#include <lber.h> | #include <lber.h> | |||
#include <sasl.h> | #include <sasl.h> | |||
#include "lak.h" | #include "lak.h" | |||
typedef struct lak_auth_method { | typedef struct lak_auth_method { | |||
int method; | int method; | |||
int (*check) (LAK *lak, const char *user, const char *service, const char *realm, const char *password) ; | int (*check) (LAK *lak, const char *user, const char *service, const char *realm, const char *password) ; | |||
} LAK_AUTH_METHOD; | } LAK_AUTH_METHOD; | |||
skipping to change at line 162 | skipping to change at line 163 | |||
configfile); | configfile); | |||
return LAK_FAIL; | return LAK_FAIL; | |||
} | } | |||
while (fgets(buf, sizeof(buf), infile)) { | while (fgets(buf, sizeof(buf), infile)) { | |||
lineno++; | lineno++; | |||
if (buf[strlen(buf)-1] == '\n') | if (buf[strlen(buf)-1] == '\n') | |||
buf[strlen(buf)-1] = '\0'; | buf[strlen(buf)-1] = '\0'; | |||
for (p = buf; *p && isspace((int) *p); p++); | for (p = buf; *p && isspace((int) *p); p++); | |||
if (!*p || *p == '#') | if (!*p || *p == '#') | |||
continue; | continue; | |||
key = p; | key = p; | |||
while (*p && (isalnum((int) *p) || *p == '-' || *p == '_')) { | while (*p && (isalnum((int) *p) || *p == '-' || *p == '_')) { | |||
if (isupper((int) *p)) | if (isupper((int) *p)) | |||
*p = tolower(*p); | *p = tolower(*p); | |||
p++; | p++; | |||
} | } | |||
if (*p != ':') | if (*p != ':') | |||
return LAK_FAIL; | return LAK_FAIL; | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 3 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |