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

« back to all changes in this revision

Viewing changes to pkcs11/gck/gck-sexp-key.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-sexp_keyring
 
3
 *
 
4
 * Copyright (C) 2008 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_SEXP_KEY_H__
 
23
#define __GCK_SEXP_KEY_H__
 
24
 
 
25
#include <glib-object.h>
 
26
 
 
27
#include "gck-sexp.h"
 
28
#include "gck-object.h"
 
29
#include "gck-types.h"
 
30
 
 
31
#define GCK_TYPE_SEXP_KEY               (gck_sexp_key_get_type ())
 
32
#define GCK_SEXP_KEY(obj)               (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCK_TYPE_SEXP_KEY, GckSexpKey))
 
33
#define GCK_SEXP_KEY_CLASS(klass)       (G_TYPE_CHECK_CLASS_CAST ((klass), GCK_TYPE_SEXP_KEY, GckSexpKeyClass))
 
34
#define GCK_IS_SEXP_KEY(obj)            (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GCK_TYPE_SEXP_KEY))
 
35
#define GCK_IS_SEXP_KEY_CLASS(klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), GCK_TYPE_SEXP_KEY))
 
36
#define GCK_SEXP_KEY_GET_CLASS(obj)     (G_TYPE_INSTANCE_GET_CLASS ((obj), GCK_TYPE_SEXP_KEY, GckSexpKeyClass))
 
37
 
 
38
typedef struct _GckSexpKeyClass GckSexpKeyClass;
 
39
typedef struct _GckSexpKeyPrivate GckSexpKeyPrivate;
 
40
 
 
41
struct _GckSexpKey {
 
42
        GckObject parent;
 
43
        GckSexpKeyPrivate *pv;
 
44
};
 
45
 
 
46
struct _GckSexpKeyClass {
 
47
        GckObjectClass parent_class;
 
48
 
 
49
        /* virtual methods */
 
50
 
 
51
        GckSexp* (*acquire_crypto_sexp) (GckSexpKey *self, GckSession *session);
 
52
};
 
53
 
 
54
GType                gck_sexp_key_get_type                (void);
 
55
 
 
56
GckSexp*             gck_sexp_key_get_base                (GckSexpKey *self);
 
57
 
 
58
void                 gck_sexp_key_set_base                (GckSexpKey *self,
 
59
                                                           GckSexp *sexp);
 
60
 
 
61
int                  gck_sexp_key_get_algorithm           (GckSexpKey *self);
 
62
 
 
63
CK_RV                gck_sexp_key_set_part                (GckSexpKey *self,
 
64
                                                           int algorithm,
 
65
                                                           const char *part,
 
66
                                                           CK_ATTRIBUTE_PTR attr);
 
67
 
 
68
GckSexp*             gck_sexp_key_acquire_crypto_sexp     (GckSexpKey *self,
 
69
                                                           GckSession *session);
 
70
 
 
71
#endif /* __GCK_SEXP_KEY_H__ */