00001 /* 00002 * PKCS #11 PAM Login Module 00003 * Copyright (C) 2003 Mario Strasser <mast@gmx.net>, 00004 * 00005 * This library is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU Lesser General Public 00007 * License as published by the Free Software Foundation; either 00008 * version 2.1 of the License, or (at your option) any later version. 00009 * 00010 * This library is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 * Lesser General Public License for more details. 00014 * 00015 * $Id$ 00016 */ 00017 00030 #ifndef __URI_H_ 00031 #define __URI_H_ 00032 00033 #ifdef HAVE_CONFIG_H 00034 #include <config.h> 00035 #endif 00036 #include <malloc.h> 00037 00038 #ifndef __URI_C_ 00039 #define URI_EXTERN extern 00040 #else 00041 #define URI_EXTERN 00042 #endif 00043 00051 URI_EXTERN int get_from_uri(const char *uri_str, unsigned char **data, size_t *length); 00052 00053 #undef URI_EXTERN 00054 00055 #endif /* __URI_H_ */