Merge branch 'gnome-3-0'
[platform/upstream/gcr.git] / gcr / gcr-fingerprint.h
1 /*
2  * gnome-keyring
3  *
4  * Copyright (C) 2011 Collabora Ltd.
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  * Author: Stef Walter <stefw@collabora.co.uk>
22  */
23
24 #ifndef GCR_FINGERPRINT_H
25 #define GCR_FINGERPRINT_H
26
27 #include <glib.h>
28
29 #include "gcr-types.h"
30
31 gpointer        _gcr_fingerprint_from_subject_public_key_info    (gconstpointer key_info,
32                                                                   gsize n_key_info,
33                                                                   GChecksumType checksum_type,
34                                                                   gsize *n_fingerprint);
35
36 gpointer        _gcr_fingerprint_from_attributes                 (GckAttributes *attrs,
37                                                                   GChecksumType checksum_type,
38                                                                   gsize *n_fingerprint);
39
40 #endif /* GCR_FINGERPRINT_H_ */