~diresu/blender/blender-command-port

« back to all changes in this revision

Viewing changes to source/blender/verify/BLO_verify.h

  • Committer: theeth
  • Date: 2008-10-14 16:52:04 UTC
  • Revision ID: vcs-imports@canonical.com-20081014165204-r32w2gm6s0osvdhn
copy back trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * $Id: BLO_verify.h 14444 2008-04-16 22:40:48Z hos $
 
3
 *
 
4
 * ***** BEGIN GPL LICENSE BLOCK *****
 
5
 *
 
6
 * This program is free software; you can redistribute it and/or
 
7
 * modify it under the terms of the GNU General Public License
 
8
 * as published by the Free Software Foundation; either version 2
 
9
 * of the License, or (at your option) any later version.
 
10
 *
 
11
 * This program is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
 * GNU General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU General Public License
 
17
 * along with this program; if not, write to the Free Software Foundation,
 
18
 * Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
19
 *
 
20
 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
 
21
 * All rights reserved.
 
22
 *
 
23
 * The Original Code is: all of this file.
 
24
 *
 
25
 * Contributor(s): none yet.
 
26
 *
 
27
 * ***** END GPL LICENSE BLOCK *****
 
28
 */
 
29
 
 
30
#ifndef BLO_VERIFY_H
 
31
#define BLO_VERIFY_H
 
32
 
 
33
#ifdef __cplusplus
 
34
extern "C" {
 
35
#endif
 
36
 
 
37
#define VERIFY_DECLARE_HANDLE(name) typedef struct name##__ { int unused; } *name
 
38
 
 
39
VERIFY_DECLARE_HANDLE(BLO_verifyStructHandle);
 
40
 
 
41
/**
 
42
 * openssl verify initializer
 
43
 * @retval pointer to verify control structure
 
44
 */
 
45
        BLO_verifyStructHandle
 
46
BLO_verify_begin(
 
47
        void *endControl);
 
48
 
 
49
/**
 
50
 * openssl verify dataprocessor wrapper
 
51
 * @param BLO_verify Pointer to verify control structure
 
52
 * @param data Pointer to new data
 
53
 * @param dataIn New data amount
 
54
 * @retval streamGlueRead return value
 
55
 */
 
56
        int
 
57
BLO_verify_process(
 
58
        BLO_verifyStructHandle BLO_verifyHandle,
 
59
        unsigned char *data,
 
60
        unsigned int dataIn);
 
61
 
 
62
/**
 
63
 * openssl verify final call and cleanup
 
64
 * @param BLO_verify Pointer to verify control structure
 
65
 * @retval streamGlueRead return value
 
66
 */
 
67
        int
 
68
BLO_verify_end(
 
69
        BLO_verifyStructHandle BLO_verifyHandle);
 
70
 
 
71
#ifdef __cplusplus
 
72
}
 
73
#endif
 
74
 
 
75
#endif /* BLO_VERIFY_H */
 
76