pam_pkcs11 0.6.8

- Main Page
- Data Structures
- Files
- Directories

- File List
- Globals

uri.h
Go to the documentation of this file.

    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: uri.h 431 2010-04-10 20:53:10Z ludovic.rousseau $
    00016  */
    00017
    00030 #ifndef __URI_H_
    00031 #define __URI_H_
    00032
    00033 #ifdef HAVE_CONFIG_H
    00034 #include <config.h>
    00035 #endif
    00036 #include <stdlib.h>
    00037
    00038 #ifndef __URI_C_
    00039 #define URI_EXTERN extern
    00040 #else
    00041 #define URI_EXTERN
    00042 #endif
    00043
    00044 URI_EXTERN int is_uri(const char *path);
    00045 URI_EXTERN int is_file(const char *path);
    00046 URI_EXTERN int is_dir(const char *path);
    00047 URI_EXTERN int is_symlink(const char *path);
    00048
    00056 URI_EXTERN int get_from_uri(const char *uri_str, unsigned char **data, size_t *length);
    00057
    00058 #undef URI_EXTERN
    00059
    00060 #endif /* __URI_H_ */