~ubuntu-branches/ubuntu/maverick/gnome-keyring/maverick

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2010-09-01 12:54:04 UTC
  • mfrom: (1.1.64 upstream)
  • Revision ID: james.westby@ubuntu.com-20100901125404-3d96lh3oo4karbv3
Tags: 2.92.92.is.2.31.91-0ubuntu1
* New upstream release
* debian/control:
  - Drop build-depends on libgconf2-dev
  - Build-depend on dh-autoreconf, gnome-common
* debian/rules:
  - Use autoreconf.mk
* debian/gnome-keyring.install:
  - No longer provides a gconf schema
* debian/libgcr0.symbols:
  - Updated
* debian/patches/90_git_pam_headers.patch:
  - Fix incorrect PAM header check
* debian/patches/05_login_unlock_string.patch:
* debian/patches/90_git_keyring_encoding.patch:
  - Applied upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * gnome-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_DH_MECHANISM_H_
23
 
#define GCK_DH_MECHANISM_H_
24
 
 
25
 
#include "gck-types.h"
26
 
 
27
 
#include "pkcs11/pkcs11.h"
28
 
 
29
 
#include <glib.h>
30
 
 
31
 
#include <gcrypt.h>
32
 
 
33
 
static const CK_MECHANISM_TYPE GCK_DH_MECHANISMS[] = {
34
 
        CKM_DH_PKCS_DERIVE
35
 
};
36
 
 
37
 
CK_RV                    gck_dh_mechanism_generate                     (GckSession *session,
38
 
                                                                        CK_ATTRIBUTE_PTR pub_atts,
39
 
                                                                        CK_ULONG n_pub_atts,
40
 
                                                                        CK_ATTRIBUTE_PTR priv_atts,
41
 
                                                                        CK_ULONG n_priv_atts,
42
 
                                                                        GckObject **pub_key,
43
 
                                                                        GckObject **priv_key);
44
 
 
45
 
CK_RV                    gck_dh_mechanism_derive                       (GckSession *session,
46
 
                                                                        CK_MECHANISM_PTR mech,
47
 
                                                                        GckObject *base,
48
 
                                                                        CK_ATTRIBUTE_PTR attrs,
49
 
                                                                        CK_ULONG n_attrs,
50
 
                                                                        GckObject **derived);
51
 
 
52
 
#endif /* GCK_DH_MECHANISM_H_ */