mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-14 02:22:03 +08:00
Several changes to compile on old linux kernels, and in constrained libgnutls libraries
This commit is contained in:
@@ -110,7 +110,12 @@ unsigned j;
|
||||
READ_MULTI_LINE("auth", auth, auth_size, 1);
|
||||
for (j=0;j<auth_size;j++) {
|
||||
if (strcasecmp(auth[j], "pam") == 0) {
|
||||
#ifdef HAVE_PAM
|
||||
config->auth_types |= AUTH_TYPE_PAM;
|
||||
#else
|
||||
fprintf(stderr, "PAM support is disabled\n");
|
||||
exit(1);
|
||||
#endif
|
||||
} else if (strcasecmp(auth[j], "certificate") == 0) {
|
||||
config->auth_types |= AUTH_TYPE_CERTIFICATE;
|
||||
config->cert_req = GNUTLS_CERT_REQUIRE;
|
||||
|
||||
Reference in New Issue
Block a user