GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  AUTH_GETOPTION (3)

--> --> .ds Aq ’

NAME

auth_getoption - Search an option string

CONTENTS

SYNOPSIS

#include <courierauth.h>

char *value=auth_getoption(const char *options, const char *keyword);

DESCRIPTION

This is a convenience function for parsing account options, as received by the callback function invoked by \m[blue]auth_generic(3)\m[][1], \m[blue]auth_login(3)\m[][2], \m[blue]auth_getuserinfo(3)\m[][3], and \m[blue]auth_passwd(3)\m[][4].

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 \(lqkeyword=value\(rq 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 callers responsibility to free(3) the returned buffer.

auth_getoption returns NULL with errno set to ENOMEM if it cannot allocate a buffer.

SEE ALSO

\m[blue]authlib(3)\m[][5], \m[blue]auth_generic(3)\m[][1], \m[blue]auth_login(3)\m[][2], \m[blue]auth_getuserinfo(3)\m[][3].

NOTES

1. auth_generic(3)  http://www.courier-mta.org/authlib/auth_generic.html
2. auth_login(3)  http://www.courier-mta.org/authlib/auth_login.html
3. auth_getuserinfo(3)  http://www.courier-mta.org/authlib/auth_getuserinfo.html
4. auth_passwd(3)  http://www.courier-mta.org/authlib/auth_passwd.html
5. authlib(3)  http://www.courier-mta.org/authlib/authlib.html
Search for    or go to Top of page |  Section 3 |  Main Index


Double Precision, Inc. AUTH_GETOPTION (3) 06/20/2015

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.