Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 194 lines (163 sloc) 5.099 kb
0e639f7 @kazu-yamamoto The first release
authored
1 /*
2 * pgpdump.h
3 */
4
5677a4a @kazu-yamamoto configure support.
authored
5 #ifndef _PGP_DUMP_H_
6 #define _PGP_DUMP_H_
7
8 #include "config.h"
9
10 #include <stdio.h>
11 #include <string.h>
12 #include <stdlib.h>
82dafed @kazu-yamamoto * Removing compiler warnings.
authored
13 #include <ctype.h>
5677a4a @kazu-yamamoto configure support.
authored
14 #ifdef HAVE_UNISTD_H
15 # include <unistd.h>
16 #endif /* HAVE_UNISTD_H */
17
0e639f7 @kazu-yamamoto The first release
authored
18 #define public extern
19 #define private static
20
792ad89 @kazu-yamamoto * Catching up to 2440bis-10/11.
authored
21 typedef char * string;
22 typedef unsigned char byte;
23
5c809b8 @kazu-yamamoto * New scheme to handle partial bodies.
authored
24 #define YES 1
25 #define NO 0
26
0e639f7 @kazu-yamamoto The first release
authored
27 #define NULL_VER -1
28
29 /*
30 * Global
31 */
32
c67ae97 @kazu-yamamoto * Defining the SHA-1 hash for Secret Key Packet.
authored
33 public int aflag;
34 public int gflag;
5b3659b @kazu-yamamoto Portability hack.
authored
35 public int iflag;
36 public int lflag;
37 public int mflag;
38 public int pflag;
39 public int uflag;
0e639f7 @kazu-yamamoto The first release
authored
40
41 /*
42 * pgpdump.c
43 */
44
792ad89 @kazu-yamamoto * Catching up to 2440bis-10/11.
authored
45 public void warning(const string, ...);
46 public void warn_exit(const string, ...);
c67ae97 @kazu-yamamoto * Defining the SHA-1 hash for Secret Key Packet.
authored
47 public void skip(int);
48 public void dump(int);
49 public void pdump(int);
50 public void kdump(int);
51 public void gdump(int);
5c809b8 @kazu-yamamoto * New scheme to handle partial bodies.
authored
52
53 /*
54 * buffer.c
55 */
56
57 public void Compressed_Data_Packet(int);
58
59 public void set_armor(void);
60 public void set_binary(void);
61
0e639f7 @kazu-yamamoto The first release
authored
62 public int Getc(void);
1815493 @kazu-yamamoto * Adding the "-p" option.
authored
63 public int Getc1(void);
0e639f7 @kazu-yamamoto The first release
authored
64 public int Getc_getlen(void);
65 public void Getc_resetlen(void);
66
67 /*
68 * packet.c
69 */
70
71 public void parse_packet(void);
792ad89 @kazu-yamamoto * Catching up to 2440bis-10/11.
authored
72 public void parse_signature_subpacket(string, int);
73 public void parse_userattr_subpacket(string, int);
0e639f7 @kazu-yamamoto The first release
authored
74
75 /*
76 * types.c
77 */
78
5c809b8 @kazu-yamamoto * New scheme to handle partial bodies.
authored
79 public void pub_algs(unsigned int);
80 public void sym_algs(unsigned int);
ae0239e @kazu-yamamoto * Old man style for pgpdump.1.
authored
81 public void sym_algs2(unsigned int);
64b6605 @kazu-yamamoto * Fixing IV length.
authored
82 public int iv_len(unsigned int);
5c809b8 @kazu-yamamoto * New scheme to handle partial bodies.
authored
83 public void comp_algs(unsigned int);
84 public void hash_algs(unsigned int);
0e639f7 @kazu-yamamoto The first release
authored
85 public void key_id(void);
5c809b8 @kazu-yamamoto * New scheme to handle partial bodies.
authored
86 public void fingerprint(void);
792ad89 @kazu-yamamoto * Catching up to 2440bis-10/11.
authored
87 public void time4(string);
88 public void sig_creation_time4(string);
89 public void sig_expiration_time4(string);
90 public void key_creation_time4(string);
91 public void key_expiration_time4(string);
0e639f7 @kazu-yamamoto The first release
authored
92 public void ver(int, int, int);
ff8db9a @kazu-yamamoto * More secure programming style.
authored
93 public int string_to_key(void);
792ad89 @kazu-yamamoto * Catching up to 2440bis-10/11.
authored
94 public void multi_precision_integer(string);
0e639f7 @kazu-yamamoto The first release
authored
95
96 /*
97 * tagfunc.c
98 */
99 public void Reserved(int);
100 public void Public_Key_Encrypted_Session_Key_Packet(int);
101 public void Symmetric_Key_Encrypted_Session_Key_Packet(int);
102 public void Symmetrically_Encrypted_Data_Packet(int);
103 public void Marker_Packet(int);
104 public void Literal_Data_Packet(int);
105 public void Trust_Packet(int);
106 public void User_ID_Packet(int);
c67ae97 @kazu-yamamoto * Defining the SHA-1 hash for Secret Key Packet.
authored
107 public void User_Attribute_Packet(int);
1815493 @kazu-yamamoto * Adding the "-p" option.
authored
108 public void Symmetrically_Encrypted_and_MDC_Packet(int);
109 public void Modification_Detection_Code_Packet(int);
110 public void Private_Packet(int);
0e639f7 @kazu-yamamoto The first release
authored
111
112 /*
113 * keys.c
114 */
115
116 public void Public_Key_Packet(int);
117 public void Public_Subkey_Packet(int);
118 public void Secret_Key_Packet(int);
119 public void Secret_Subkey_Packet(int);
120
121 /*
122 * signature.c
123 */
124
125 public void One_Pass_Signature_Packet(int);
126 public void Signature_Packet(int);
127
128 /*
129 * subfunc.c
130 */
131
132 public void signature_creation_time(int);
133 public void signature_expiration_time(int);
134 public void exportable_certification(int);
135 public void trust_signature(int);
136 public void regular_expression(int);
137 public void revocable(int);
138 public void key_expiration_time(int);
1d30d80 @kazu-yamamoto Implementing additional_decryption_key() like revocation_key().
authored
139 public void additional_decryption_key(int);
0e639f7 @kazu-yamamoto The first release
authored
140 public void preferred_symmetric_algorithms(int);
141 public void revocation_key(int);
142 public void issuer_key_ID(int);
143 public void notation_data(int);
144 public void preferred_hash_algorithms(int);
145 public void preferred_compression_algorithms(int);
146 public void key_server_preferences(int);
147 public void preferred_key_server(int);
148 public void primary_user_id(int);
149 public void policy_URL(int);
150 public void key_flags(int);
151 public void signer_user_id(int);
152 public void reason_for_revocation(int);
c67ae97 @kazu-yamamoto * Defining the SHA-1 hash for Secret Key Packet.
authored
153 public void features(int);
b9df9b1 @kazu-yamamoto * Supporting MacOS X.
authored
154 public void signature_target(int);
792ad89 @kazu-yamamoto * Catching up to 2440bis-10/11.
authored
155 public void embedded_signature(int);
c67ae97 @kazu-yamamoto * Defining the SHA-1 hash for Secret Key Packet.
authored
156
157 /*
158 * uatfunc.c
159 */
160
161 public void image_attribute(int);
0e639f7 @kazu-yamamoto The first release
authored
162
5677a4a @kazu-yamamoto configure support.
authored
163 #endif /* _PGP_DUMP_H_ */
164
e8a7352 @kazu-yamamoto removing unnecessary trailing spaces.
authored
165 /*
0e639f7 @kazu-yamamoto The first release
authored
166 * Copyright (C) 1998 Kazuhiko Yamamoto
167 * All rights reserved.
e8a7352 @kazu-yamamoto removing unnecessary trailing spaces.
authored
168 *
0e639f7 @kazu-yamamoto The first release
authored
169 * Redistribution and use in source and binary forms, with or without
170 * modification, are permitted provided that the following conditions
171 * are met:
e8a7352 @kazu-yamamoto removing unnecessary trailing spaces.
authored
172 *
0e639f7 @kazu-yamamoto The first release
authored
173 * 1. Redistributions of source code must retain the above copyright
174 * notice, this list of conditions and the following disclaimer.
175 * 2. Redistributions in binary form must reproduce the above copyright
176 * notice, this list of conditions and the following disclaimer in the
177 * documentation and/or other materials provided with the distribution.
178 * 3. Neither the name of the author nor the names of its contributors
179 * may be used to endorse or promote products derived from this software
180 * without specific prior written permission.
e8a7352 @kazu-yamamoto removing unnecessary trailing spaces.
authored
181 *
0e639f7 @kazu-yamamoto The first release
authored
182 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
183 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
184 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
185 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE
186 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
187 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
188 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
189 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
190 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
191 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
192 * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
193 */
Something went wrong with that request. Please try again.