Changeset 287
- Timestamp:
- 10/31/05 14:24:11
- Files:
-
- openpgpsdk/trunk/configure (modified) (1 diff)
- openpgpsdk/trunk/include/openpgpsdk/configure.h.template (modified) (1 diff)
- openpgpsdk/trunk/include/openpgpsdk/packet-parse.h (modified) (1 diff)
- openpgpsdk/trunk/include/openpgpsdk/packet.h (modified) (4 diffs)
- openpgpsdk/trunk/src/armour.c (modified) (1 diff)
- openpgpsdk/trunk/src/create.c (modified) (3 diffs)
- openpgpsdk/trunk/src/packet-show.c (modified) (1 diff)
- openpgpsdk/trunk/src/signature.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
openpgpsdk/trunk/configure
r284 r287 312 312 if(getKnowledge('is_gcc')) { 313 313 $flags='-Wall -Werror -W -g'; 314 my $v=getKnowledge('gcc_major');315 $flags.=' -Wdeclaration-after-statement' if $v >= 3;314 # my $v=getKnowledge('gcc_major'); 315 # $flags.=' -Wdeclaration-after-statement' if $v >= 3; 316 316 } 317 317 return $flags; openpgpsdk/trunk/include/openpgpsdk/configure.h.template
r250 r287 6 6 #endif 7 7 8 / / for silencing unused parameter warnings8 /* for silencing unused parameter warnings */ 9 9 #define OPS_USED(x) (x)=(x) openpgpsdk/trunk/include/openpgpsdk/packet-parse.h
r282 r287 87 87 ops_packet_reader_t *reader; /*!< the reader function to use to get the data to be parsed */ 88 88 void *reader_arg; /*!< the args to pass to the reader function */ 89 / / XXX: what do we do about offsets into compressed packets?89 /* XXX: what do we do about offsets into compressed packets? */ 90 90 unsigned position; /*!< the offset from the beginning (with this reader) */ 91 91 openpgpsdk/trunk/include/openpgpsdk/packet.h
r274 r287 224 224 length information, not at the same moment we create the packet tag structure. 225 225 Only defined if #length_read is set. */ /* XXX: Ben, is this correct? */ 226 // unsigned length_read; /*!< How much bytes of this packet we have read so far - for internal use227 // only. */228 226 unsigned position; /*!< The position (within the current reader) of the packet */ 229 227 } ops_ptag_t; … … 483 481 ops_rsa_signature_t rsa; /*!< An RSA Signature */ 484 482 ops_dsa_signature_t dsa; /*!< A DSA Signature */ 485 ops_elgamal_signature_t elgamal; / / deprecated483 ops_elgamal_signature_t elgamal; /* deprecated */ 486 484 ops_unknown_signature_t unknown; /* private or experimental */ 487 485 } ops_signature_union_t; … … 504 502 unsigned char hash2[2]; /*!< high 2 bytes of hashed value - for quick test */ 505 503 ops_signature_union_t signature; /*!< signature parameters */ 506 size_t v4_hashed_data_start; / / only valid if accumulate is set504 size_t v4_hashed_data_start; /* only valid if accumulate is set */ 507 505 size_t v4_hashed_data_length; 508 506 ops_boolean_t creation_time_set:1; … … 620 618 } ops_compression_type_t; 621 619 622 / /unlike most structures, this will feed its data as a stream623 // to the application instead of directly including it 620 /* unlike most structures, this will feed its data as a stream 621 * to the application instead of directly including it */ 624 622 /** ops_compressed_t */ 625 623 typedef struct openpgpsdk/trunk/src/armour.c
r282 r287 230 230 assert(body->data[0] == '\n'); 231 231 assert(body->length == 1); 232 // and we don't send that one character, because its part of the trailer. 233 // if(body->length) 234 // CB(OPS_PTAG_CT_SIGNED_CLEARTEXT_BODY,&content); 232 /* don't send that one character, because its part of the trailer. */ 235 233 236 234 trailer->hash=hash; openpgpsdk/trunk/src/create.c
r271 r287 86 86 } 87 87 88 / /XXX: the general idea of _fast_ is that it doesn't copy stuff89 //the safe (i.e. non _fast_) version will, and so will also need to90 // be freed. 88 /* XXX: the general idea of _fast_ is that it doesn't copy stuff 89 * the safe (i.e. non _fast_) version will, and so will also need to 90 * be freed. */ 91 91 92 92 /** … … 118 118 ops_create_options_t *opt) 119 119 { 120 // \todo don't use strlen for UTF-8 string121 120 return ops_write_ptag(OPS_PTAG_CT_USER_ID,opt) 122 121 && ops_write_length(strlen((char *)id->user_id),opt) … … 172 171 } 173 172 174 / /Note that we support v3 keys here because they're needed for175 // for verification - the writer doesn't allow them, though 173 /* Note that we support v3 keys here because they're needed for 174 * for verification - the writer doesn't allow them, though */ 176 175 static int write_public_key_body(const ops_public_key_t *key, 177 176 ops_create_options_t *opt) openpgpsdk/trunk/src/packet-show.c
r280 r287 613 613 * \todo add reference 614 614 */ 615 / / XXX: shouldn't this use show_all_octets_bits?615 /* XXX: shouldn't this use show_all_octets_bits? */ 616 616 ops_text_t *ops_showall_ss_features(ops_ss_features_t ss_features) 617 617 { openpgpsdk/trunk/src/signature.c
r273 r287 71 71 72 72 keysize=BN_num_bytes(rsa->n); 73 / / RSA key can't be bigger than 65535 bits, so...73 /* RSA key can't be bigger than 65535 bits, so... */ 74 74 assert(keysize <= sizeof hashbuf); 75 75 assert((unsigned)BN_num_bits(sig->sig) <= 8*sizeof sigbuf);
