SYNOPSIS
#include <courierauth.h>
- char *value=auth_getoption(const char *options, const char *keyword);
DESCRIPTION
options is the options field from authinfo (which can be NULL). As described in m[blue]auth_generic(3)m[][1] (and the others), it is a comma-separated list of "keyword=value" pairs.
auth_getoption searches options for a keyword.
RETURNS
If options does not have the keyword, auth_getoption returns NULL with errno set to ENOENT. Otherwise auth_getoption allocates a buffer for value, and returns it. It is the caller's responsibility to free(3) the returned buffer.
auth_getoption returns NULL with errno set to ENOMEM if it cannot allocate a buffer.
NOTES
- 1.
- auth_generic(3)
- 2.
- auth_login(3)
- 3.
- auth_getuserinfo(3)
- 4.
- auth_passwd(3)
- 5.
-
authlib(3)