AN_SET_AUTHSCHEMESection: Antinat Programmer's Manual (3)
Index Return to Main Contents
The an_set_authscheme(3) function is used to allow an authentication scheme to be used on a proxy capable socket. By default, all supported authentication schemes are allowed. After this function is called however, only schemes that have been explicitly allowed under this function will be acceptable. Currently defined authentication schemes are: AN_AUTH_ANON, AN_AUTH_CLEARTEXT, AN_AUTH_BASIC and AN_AUTH_CHAP. Cleartext and basic can be considered as equivalent, referring to different names for different proxy types, but can be used interchangably. In order to reset the authentication schemes chosen, use the an_clear_authschemes(3) function.
s is a socket previously created with an_new_connection(3).
scheme is an authentication scheme, any one of AN_AUTH_ANON, AN_AUTH_CLEARTEXT, AN_AUTH_BASIC or AN_AUTH_CHAP.
- The socket handle is invalid, or the authentication scheme is not recognised.
Malcolm Smith <email@example.com>
Time: 14:19:44 GMT, January 09, 2005