diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libradsec-base.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libradsec-base.h b/lib/libradsec-base.h index 57a86ef..cb4308d 100644 --- a/lib/libradsec-base.h +++ b/lib/libradsec-base.h @@ -8,7 +8,7 @@ /* Example usage. */ #if 0 { - fd = rs_connect (address, psk); + fd = rs_connect (address, 0, NULL); if (!fd) /* check errno */ ; n = read (fd, buf, buflen); @@ -49,8 +49,8 @@ @return A file descriptor or -1 if an error occurred, in which case errno is set appropriately. */ -int rs_connect(enum rs_conn_type type, - const struct sockaddr_storage *addr, +int rs_connect(const struct sockaddr_storage *addr, + enum rs_conn_type type, const struct rs_credentials *cred); /** Disconnect. |