4
* Copyright (C) 2008 Stefan Walter
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.
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.
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
22
#ifndef __GCK_SEXP_KEY_H__
23
#define __GCK_SEXP_KEY_H__
25
#include <glib-object.h>
28
#include "gck-object.h"
29
#include "gck-types.h"
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))
38
typedef struct _GckSexpKeyClass GckSexpKeyClass;
39
typedef struct _GckSexpKeyPrivate GckSexpKeyPrivate;
43
GckSexpKeyPrivate *pv;
46
struct _GckSexpKeyClass {
47
GckObjectClass parent_class;
51
GckSexp* (*acquire_crypto_sexp) (GckSexpKey *self, GckSession *session);
54
GType gck_sexp_key_get_type (void);
56
GckSexp* gck_sexp_key_get_base (GckSexpKey *self);
58
void gck_sexp_key_set_base (GckSexpKey *self,
61
int gck_sexp_key_get_algorithm (GckSexpKey *self);
63
CK_RV gck_sexp_key_set_part (GckSexpKey *self,
66
CK_ATTRIBUTE_PTR attr);
68
GckSexp* gck_sexp_key_acquire_crypto_sexp (GckSexpKey *self,
71
#endif /* __GCK_SEXP_KEY_H__ */