diff options
author | Stef Walter <stefw@collabora.co.uk> | 2011-10-06 12:51:08 +0200 |
---|---|---|
committer | Stef Walter <stefw@collabora.co.uk> | 2011-10-06 13:22:43 +0200 |
commit | f28d3d768f0e4057f727e8c3b93ba50c19f5db24 (patch) | |
tree | 288ef581590dfccbfddcad3c87d98ce3a4ed0a97 /gcr/gcr-types.h | |
parent | 626eef363c0ece57713c5be5939677784e8115cc (diff) | |
download | gnome-keyring-split.tar.gz |
Split Gcr and Gck libraries out of gnome-keyringsplit
Diffstat (limited to 'gcr/gcr-types.h')
-rw-r--r-- | gcr/gcr-types.h | 116 |
1 files changed, 0 insertions, 116 deletions
diff --git a/gcr/gcr-types.h b/gcr/gcr-types.h deleted file mode 100644 index cffed10d..00000000 --- a/gcr/gcr-types.h +++ /dev/null @@ -1,116 +0,0 @@ -/* - * gnome-keyring - * - * Copyright (C) 2010 Collabora Ltd. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation; either version 2.1 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - * - * Author: Stef Walter <stefw@collabora.co.uk> - */ - -#if !defined (__GCR_INSIDE_HEADER__) && !defined (GCR_COMPILATION) -#error "Only <gcr/gcr.h> or <gcr/gcr-base.h> can be included directly." -#endif - -#ifndef GCRTYPES_H_ -#define GCRTYPES_H_ - -#include <glib.h> - -#ifndef GCK_API_SUBJECT_TO_CHANGE - -/** - * GCK_API_SUBJECT_TO_CHANGE: (skip) - * - * skip for gir introspection - */ -#define GCK_API_SUBJECT_TO_CHANGE 1 - -/** - * __GCR_DEFINED_GCK_SUBJECT_TO_CHANGE__: (skip) - * - * skip for gir introspection - */ -#define __GCR_DEFINED_GCK_SUBJECT_TO_CHANGE__ 1 - -#endif - -#include <gck/gck.h> - -#ifdef __GCR_DEFINED_GCK_SUBJECT_TO_CHANGE__ -#undef GCK_API_SUBJECT_TO_CHANGE -#endif - -G_BEGIN_DECLS - -#define GCR_DATA_ERROR (gcr_data_error_get_domain ()) - -GQuark gcr_data_error_get_domain (void) G_GNUC_CONST; - -typedef enum { - GCR_ERROR_FAILURE = -1, - GCR_ERROR_UNRECOGNIZED = 1, - GCR_ERROR_CANCELLED = 2, - GCR_ERROR_LOCKED = 3 -} GcrDataError; - -typedef enum { - GCR_FORMAT_ALL = -1, - GCR_FORMAT_INVALID = 0, - - GCR_FORMAT_DER_PRIVATE_KEY = 100, - GCR_FORMAT_DER_PRIVATE_KEY_RSA, - GCR_FORMAT_DER_PRIVATE_KEY_DSA, - - GCR_FORMAT_DER_CERTIFICATE_X509 = 200, - - GCR_FORMAT_DER_PKCS7 = 300, - - GCR_FORMAT_DER_PKCS8 = 400, - GCR_FORMAT_DER_PKCS8_PLAIN, - GCR_FORMAT_DER_PKCS8_ENCRYPTED, - - GCR_FORMAT_DER_PKCS12 = 500, - - GCR_FORMAT_OPENSSH_PUBLIC = 600, - - GCR_FORMAT_OPENPGP_PACKET = 700, - GCR_FORMAT_OPENPGP_ARMOR, - - GCR_FORMAT_PEM = 1000, - GCR_FORMAT_PEM_PRIVATE_KEY_RSA, - GCR_FORMAT_PEM_PRIVATE_KEY_DSA, - GCR_FORMAT_PEM_CERTIFICATE_X509, - GCR_FORMAT_PEM_PKCS7, - GCR_FORMAT_PEM_PKCS8_PLAIN, - GCR_FORMAT_PEM_PKCS8_ENCRYPTED, - GCR_FORMAT_PEM_PKCS12, - GCR_FORMAT_PEM_PRIVATE_KEY -} GcrDataFormat; - -/* - * Special PKCS#11 style attributes that we use internally in GCR. - * These are used by GcrParser the most - */ - -enum { - /* An object class representing GcrRecord/gnupg-colons style data */ - CKO_GCR_GNUPG_RECORDS = (CKO_VENDOR_DEFINED | 0x47435200UL /* GCR0 */) -}; - -G_END_DECLS - -#endif /* GCRTYPES_H_ */ |