Changeset 240
- Timestamp:
- 10/15/05 14:00:07
- Files:
-
- openpgpsdk/trunk/examples/packet-dump.c (modified) (1 diff)
- openpgpsdk/trunk/examples/verify.c (modified) (1 diff)
- openpgpsdk/trunk/examples/verify2.c (modified) (1 diff)
- openpgpsdk/trunk/include/build.h (deleted)
- openpgpsdk/trunk/include/create.h (modified) (1 diff)
- openpgpsdk/trunk/include/openpgpsdk (added)
- openpgpsdk/trunk/include/openpgpsdk/accumulate.h (moved) (moved from openpgpsdk/trunk/include/accumulate.h)
- openpgpsdk/trunk/include/openpgpsdk/armour.h (moved) (moved from openpgpsdk/trunk/include/armour.h)
- openpgpsdk/trunk/include/openpgpsdk/compress.h (moved) (moved from openpgpsdk/trunk/include/compress.h)
- openpgpsdk/trunk/src/Makefile.template (modified) (1 diff)
- openpgpsdk/trunk/src/accumulate.c (modified) (1 diff)
- openpgpsdk/trunk/src/armour.c (modified) (1 diff)
- openpgpsdk/trunk/src/build.c (deleted)
- openpgpsdk/trunk/src/compress.c (modified) (1 diff)
- openpgpsdk/trunk/src/create.c (modified) (1 diff)
- openpgpsdk/trunk/src/fingerprint.c (modified) (1 diff)
- openpgpsdk/trunk/src/memory.c (modified) (1 diff)
- openpgpsdk/trunk/src/packet-parse.c (modified) (1 diff)
- openpgpsdk/trunk/src/signature.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
openpgpsdk/trunk/examples/packet-dump.c
r235 r240 6 6 #include "lists.h" 7 7 #include "ops_errors.h" 8 #include "armour.h"8 #include <openpgpsdk/armour.h> 9 9 #include "crypto.h" 10 10 openpgpsdk/trunk/examples/verify.c
r183 r240 2 2 #include "packet-parse.h" 3 3 #include "util.h" 4 #include "accumulate.h"4 #include <openpgpsdk/accumulate.h> 5 5 #include "keyring.h" 6 6 #include "validate.h" openpgpsdk/trunk/examples/verify2.c
r239 r240 2 2 #include "packet-parse.h" 3 3 #include "util.h" 4 #include "accumulate.h"4 #include <openpgpsdk/accumulate.h> 5 5 #include "keyring.h" 6 6 #include "validate.h" 7 #include "armour.h"7 #include <openpgpsdk/armour.h> 8 8 #include "crypto.h" 9 9 #include "signature.h" openpgpsdk/trunk/include/create.h
r177 r240 60 60 void ops_create_rsa_public_key(ops_public_key_t *key,time_t time, 61 61 const BIGNUM *n,const BIGNUM *e); 62 void ops_build_public_key(ops_memory_t *out,const ops_public_key_t *key, 63 ops_boolean_t make_packet); 62 64 ops_boolean_t ops_write_struct_public_key(const ops_public_key_t *key, 63 65 ops_create_options_t *opt); openpgpsdk/trunk/src/Makefile.template
r223 r240 9 9 all: Makefile headers .depend libops.a 10 10 11 LIBOBJS = packet-parse.o util.o openssl_crypto.o accumulate.o build.o\11 LIBOBJS = packet-parse.o util.o openssl_crypto.o accumulate.o \ 12 12 memory.o fingerprint.o hash.o keyring.o signature.o compress.o \ 13 13 packet-show.o create.o validate.o lists.o ops_errors.o armour.o openpgpsdk/trunk/src/accumulate.c
r183 r240 5 5 #include "packet-parse.h" 6 6 #include "util.h" 7 #include " accumulate.h"7 #include "openpgpsdk/accumulate.h" 8 8 #include "keyring_local.h" 9 9 #include "signature.h" openpgpsdk/trunk/src/armour.c
r238 r240 1 1 #include "configure.h" 2 #include "armour.h"2 #include <openpgpsdk/armour.h> 3 3 #include "util.h" 4 4 #include "crypto.h" openpgpsdk/trunk/src/compress.c
r135 r240 2 2 */ 3 3 4 #include "compress.h"4 #include <openpgpsdk/compress.h> 5 5 #include <zlib.h> 6 6 #include <assert.h> openpgpsdk/trunk/src/create.c
r177 r240 4 4 #include "create.h" 5 5 #include "util.h" 6 #include "build.h"7 6 #include <string.h> 8 7 #include <assert.h> openpgpsdk/trunk/src/fingerprint.c
r237 r240 5 5 #include "crypto.h" 6 6 #include "memory.h" 7 #include " build.h"7 #include "create.h" 8 8 #include <assert.h> 9 9 #include <string.h> openpgpsdk/trunk/src/memory.c
r237 r240 67 67 return OPS_W_OK; 68 68 } 69 70 void ops_memory_make_packet(ops_memory_t *out,ops_content_tag_t tag) 71 { 72 size_t extra; 73 74 if(out->length < 192) 75 extra=1; 76 else if(out->length < 8384) 77 extra=2; 78 else 79 extra=5; 80 81 ops_memory_pad(out,extra+1); 82 memmove(out->buf+extra+1,out->buf,out->length); 83 84 out->buf[0]=OPS_PTAG_ALWAYS_SET|OPS_PTAG_NEW_FORMAT|tag; 85 86 if(out->length < 192) 87 out->buf[1]=out->length; 88 else if(out->length < 8384) 89 { 90 out->buf[1]=((out->length-192) >> 8)+192; 91 out->buf[2]=out->length-192; 92 } 93 else 94 { 95 out->buf[1]=0xff; 96 out->buf[2]=out->length >> 24; 97 out->buf[3]=out->length >> 16; 98 out->buf[4]=out->length >> 8; 99 out->buf[5]=out->length; 100 } 101 102 out->length+=extra+1; 103 } openpgpsdk/trunk/src/packet-parse.c
r239 r240 7 7 #include "packet-parse.h" 8 8 #include "util.h" 9 #include "compress.h"9 #include <openpgpsdk/compress.h> 10 10 #include "lists.h" 11 11 #include "ops_errors.h" openpgpsdk/trunk/src/signature.c
r237 r240 5 5 #include "crypto.h" 6 6 #include "memory.h" 7 #include "build.h"8 7 #include "create.h" 9 8 #include <assert.h>
