Made error code consistent with the other text parsing functions.
[gnutls.git] / lib / opencdk / packet.h
blobfedf112c7691a8b7fba514c7a432156b86677814
1 /* packet.h
2 * Copyright (C) 2002-2012 Free Software Foundation, Inc.
4 * Author: Timo Schulz
6 * This file is part of OpenCDK.
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public License
10 * as published by the Free Software Foundation; either version 3 of
11 * the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>
23 #ifndef CDK_PACKET_H
24 #define CDK_PACKET_H
26 struct cdk_kbnode_s
28 struct cdk_kbnode_s *next;
29 cdk_packet_t pkt;
30 unsigned int is_deleted:1;
31 unsigned int is_cloned:1;
34 /*-- new-packet.c --*/
35 void _cdk_free_mpibuf (size_t n, bigint_t * array);
36 void _cdk_free_userid (cdk_pkt_userid_t uid);
37 void _cdk_free_signature (cdk_pkt_signature_t sig);
38 cdk_prefitem_t _cdk_copy_prefs (const cdk_prefitem_t prefs);
39 cdk_error_t _cdk_copy_userid (cdk_pkt_userid_t * dst, cdk_pkt_userid_t src);
40 cdk_error_t _cdk_copy_pubkey (cdk_pkt_pubkey_t * dst, cdk_pkt_pubkey_t src);
41 cdk_error_t _cdk_copy_seckey (cdk_pkt_seckey_t * dst, cdk_pkt_seckey_t src);
42 cdk_error_t _cdk_copy_pk_to_sk (cdk_pkt_pubkey_t pk, cdk_pkt_seckey_t sk);
43 cdk_error_t _cdk_copy_signature (cdk_pkt_signature_t * dst,
44 cdk_pkt_signature_t src);
45 cdk_error_t _cdk_pubkey_compare (cdk_pkt_pubkey_t a, cdk_pkt_pubkey_t b);
47 #endif /* CDK_PACKET_H */