diff options
author | Jeroen <jeroen@nijhofnet.nl> | 2011-04-25 22:16:34 +0200 |
---|---|---|
committer | Jeroen <jeroen@nijhofnet.nl> | 2011-04-25 22:19:33 +0200 |
commit | eb6cf3c69186698f0d5fcc5a89dd81a823794937 (patch) | |
tree | 69b9c3a92af40d8d2e647725c04aad678e6cfd43 /libtac/include | |
parent | 28ad740550c92826a54cf830946ce907d948d898 (diff) | |
download | pam_tacplus-eb6cf3c69186698f0d5fcc5a89dd81a823794937.tar.gz pam_tacplus-eb6cf3c69186698f0d5fcc5a89dd81a823794937.zip |
Removed encrypt option just check if there is a secret (key).
Removed first_hit option because you can get the same behaviour by using only one server.
Added multiple secret support, you can now specify different secrets (keys) for different servers.
connect.c: improved connection error handling by using getpeername() to check if connection is still valid. This was needed since we are using non-blocking sockets.
Properly handle multiple servers when authenticating, patch from Gregg Nemas, thanks!
Diffstat (limited to 'libtac/include')
-rw-r--r-- | libtac/include/libtac.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libtac/include/libtac.h b/libtac/include/libtac.h index 023b60d..dfa5ca0 100644 --- a/libtac/include/libtac.h +++ b/libtac/include/libtac.h @@ -57,8 +57,8 @@ extern char *tac_login; /* connect.c */ extern int tac_timeout; -extern int tac_connect(struct addrinfo **server, int servers); -extern int tac_connect_single(struct addrinfo *server); +extern int tac_connect(struct addrinfo **server, char **key, int servers); +extern int tac_connect_single(struct addrinfo *server, char *key); extern char *tac_ntop(const struct sockaddr *sa, size_t ai_addrlen); extern int tac_authen_send(int fd, const char *user, char *pass, char *tty); |