~ubuntu-branches/ubuntu/natty/gnome-keyring/natty

« back to all changes in this revision

Viewing changes to pkcs11/gck/gck-null-mechanism.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2010-02-16 19:00:06 UTC
  • mfrom: (1.1.58 upstream)
  • Revision ID: james.westby@ubuntu.com-20100216190006-cqpnic4zxlkmmi0o
Tags: 2.29.90git20100218-0ubuntu1
Updated to a git snapshot version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * gnome-keyring
 
3
 *
 
4
 * Copyright (C) 2009 Stefan Walter
 
5
 *
 
6
 * This program is free software; you can redistribute it and/or modify
 
7
 * it under the terms of the GNU Lesser General  License as
 
8
 * published by the Free Software Foundation; either version 2.1 of
 
9
 * the License, or (at your option) any later version.
 
10
 *
 
11
 * This program is distributed in the hope that it will be useful, but
 
12
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
14
 * Lesser General  License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU Lesser General
 
17
 * License along with this program; if not, write to the Free Software
 
18
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
19
 * 02111-1307, USA.
 
20
 */
 
21
 
 
22
#ifndef GCK_NULL_MECHANISM_H_
 
23
#define GCK_NULL_MECHANISM_H_
 
24
 
 
25
#include "gck-types.h"
 
26
 
 
27
#include "pkcs11/pkcs11.h"
 
28
#include "pkcs11/pkcs11i.h"
 
29
 
 
30
#include <glib.h>
 
31
 
 
32
#define GCK_NULL_MECHANISM_MIN_LENGTH     0
 
33
#define GCK_NULL_MECHANISM_MAX_LENGTH     0
 
34
 
 
35
static const CK_MECHANISM_TYPE GCK_NULL_MECHANISMS[] = {
 
36
        CKM_G_NULL
 
37
};
 
38
 
 
39
CK_RV                   gck_null_mechanism_wrap                (GckSession *session,
 
40
                                                                CK_MECHANISM_PTR mech,
 
41
                                                                GckObject *wrapper,
 
42
                                                                GckObject *wrapped,
 
43
                                                                CK_BYTE_PTR output,
 
44
                                                                CK_ULONG_PTR n_output);
 
45
 
 
46
CK_RV                   gck_null_mechanism_unwrap              (GckSession *session,
 
47
                                                                CK_MECHANISM_PTR mech,
 
48
                                                                GckObject *wrapper,
 
49
                                                                CK_VOID_PTR input,
 
50
                                                                CK_ULONG n_input,
 
51
                                                                CK_ATTRIBUTE_PTR attrs,
 
52
                                                                CK_ULONG n_attrs,
 
53
                                                                GckObject **unwrapped);
 
54
 
 
55
#endif /* GCK_NULL_MECHANISM_H_ */