Imported Upstream version 0.66.1
[hcoop/debian/courier-authlib.git] / courierauthsasl.h
index 25e7c02..e57b21e 100644 (file)
@@ -2,7 +2,7 @@
 #define        courierauthsasl_h
 
 /*
-** Copyright 1998 - 2008 Double Precision, Inc.  See COPYING for
+** Copyright 1998 - 2013 Double Precision, Inc.  See COPYING for
 ** distribution information.
 */
 
@@ -13,7 +13,6 @@
 extern "C" {
 #endif
 
-static const char courierauthsasl_h_rcsid[]="$Id: courierauthsasl.h,v 1.3 2008/12/02 03:41:19 mrsam Exp $";
 
 /*
        These family of functions are used to implement the SASL interface
@@ -64,6 +63,15 @@ int auth_sasl_ex(const char *method,
                 char **authtype_ptr,
                 char **authdata_ptr);
 
+       /*
+       ** Given authtype and authdata, return the userid in the authentication
+       ** request. Returns a malloced buffer.
+       */
+char *auth_sasl_extract_userid(const char *authtype,
+                              const char *authdata);
+
+
+
        /* INTERNAL FUNCTIONS BELOW */
 
 /*