pam_pkcs11
0.6.13
src
common
uri.h
Go to the documentation of this file.
1
/*
2
* PKCS #11 PAM Login Module
3
* Copyright (C) 2003 Mario Strasser <mast@gmx.net>,
4
*
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Lesser General Public
7
* License as published by the Free Software Foundation; either
8
* version 2.1 of the License, or (at your option) any later version.
9
*
10
* This library is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* Lesser General Public License for more details.
14
*
15
* $Id$
16
*/
17
30
#ifndef __URI_H_
31
#define __URI_H_
32
33
#ifdef HAVE_CONFIG_H
34
#include <config.h>
35
#endif
36
#include <stdlib.h>
37
38
#ifndef __URI_C_
39
#define URI_EXTERN extern
40
#else
41
#define URI_EXTERN
42
#endif
43
44
URI_EXTERN
int
is_uri
(
const
char
*path);
45
URI_EXTERN
int
is_file
(
const
char
*path);
46
URI_EXTERN
int
is_dir
(
const
char
*path);
47
URI_EXTERN
int
is_symlink
(
const
char
*path);
48
56
URI_EXTERN
int
get_from_uri
(
const
char
*uri_str,
unsigned
char
**data,
size_t
*length);
57
58
#undef URI_EXTERN
59
60
#endif
/* __URI_H_ */
is_symlink
URI_EXTERN int is_symlink(const char *path)
is_file
URI_EXTERN int is_file(const char *path)
URI_EXTERN
#define URI_EXTERN
Definition
uri.h:39
is_dir
URI_EXTERN int is_dir(const char *path)
is_uri
URI_EXTERN int is_uri(const char *path)
get_from_uri
URI_EXTERN int get_from_uri(const char *uri_str, unsigned char **data, size_t *length)
Downloads data from a given URI.
Generated by
1.12.0