summaryrefslogtreecommitdiff
path: root/support.h
diff options
context:
space:
mode:
authorWalter de Jong <walter@heiho.net>2013-03-28 23:10:43 +0100
committerWalter de Jong <walter@heiho.net>2013-03-28 23:10:43 +0100
commit1119da92c3c47a2cb2a48d494f98ff10a6c32619 (patch)
tree80727ab0d5542f8dc05d59f292bfe05c51af73af /support.h
parente9fd08a5d571c852f1f47f0e4cead8161a919d0b (diff)
downloadpam_tacplus-1119da92c3c47a2cb2a48d494f98ff10a6c32619.tar.gz
pam_tacplus-1119da92c3c47a2cb2a48d494f98ff10a6c32619.zip
server is a struct { address, key }
Diffstat (limited to 'support.h')
-rw-r--r--support.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/support.h b/support.h
index 9662961..260dea6 100644
--- a/support.h
+++ b/support.h
@@ -26,9 +26,14 @@
#include <security/pam_modules.h>
-extern struct addrinfo *tac_srv[TAC_PLUS_MAXSERVERS];
-extern char *tac_srv_key[TAC_PLUS_MAXSERVERS];
+typedef struct {
+ struct addrinfo *addr;
+ const char *key;
+} tacplus_server_t;
+
+extern tacplus_server_t tac_srv[TAC_PLUS_MAXSERVERS];
extern int tac_srv_no;
+
extern char *tac_service;
extern char *tac_protocol;