4 * Copyright (C) 2011 Collabora Ltd.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public 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 Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21 * Author: Stef Walter <stefw@collabora.co.uk>
24 #if !defined (__GCR_INSIDE_HEADER__) && !defined (GCR_COMPILATION)
25 #error "Only <gcr/gcr.h> or <gcr/gcr-base.h> can be included directly."
28 #ifndef GCR_FINGERPRINT_H
29 #define GCR_FINGERPRINT_H
33 #include "gcr-types.h"
34 #include "gcr-certificate.h"
36 guchar * gcr_fingerprint_from_subject_public_key_info (const guchar *key_info,
38 GChecksumType checksum_type,
39 gsize *n_fingerprint);
41 guchar * gcr_fingerprint_from_attributes (GckAttributes *attrs,
42 GChecksumType checksum_type,
43 gsize *n_fingerprint);
45 #endif /* GCR_FINGERPRINT_H_ */