Changeset 410
- Timestamp:
- 04/27/06 14:48:35
- Files:
-
- openpgpsdk/trunk/examples/Makefile.template (modified) (1 diff)
- openpgpsdk/trunk/examples/packet-dump.c (modified) (1 diff)
- openpgpsdk/trunk/src/packet-parse.c (modified) (3 diffs)
- openpgpsdk/trunk/src/symmetric.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
openpgpsdk/trunk/examples/Makefile.template
r384 r410 7 7 LIBDEPS=common.o ../src/libops.a 8 8 LIBS=$(LIBDEPS) %CRYPTO_LIBS% %ZLIB% $(DM_LIB) %LIBS% 9 EXES=packet-dump verify create-key create-signed-keyverify2 sign-detached \9 EXES=packet-dump verify create-key verify2 sign-detached \ 10 10 sign-inline decrypt 11 # create-signed-key 11 12 12 13 all: Makefile .depend $(EXES) openpgpsdk/trunk/examples/packet-dump.c
r397 r410 188 188 { 189 189 print_name(name); 190 print_escaped( str,strlen(str));190 print_escaped((unsigned char *)str,strlen(str)); 191 191 putchar('\n'); 192 192 } openpgpsdk/trunk/src/packet-parse.c
r404 r410 1993 1993 // preload hashes with zeroes... 1994 1994 for(i=0 ; i < n ; ++i) 1995 hashes[n].add(&hashes[n], "",1);1995 hashes[n].add(&hashes[n],(unsigned char *)"",1); 1996 1996 } 1997 1997 … … 2008 2008 // flow through... 2009 2009 case OPS_S2KS_SIMPLE: 2010 hashes[n].add(&hashes[n], passphrase,l);2010 hashes[n].add(&hashes[n],(unsigned char*)passphrase,l); 2011 2011 break; 2012 2012 … … 2022 2022 j > OPS_SALT_SIZE ? OPS_SALT_SIZE : j); 2023 2023 if(j > OPS_SALT_SIZE) 2024 hashes[n].add(&hashes[n], passphrase,j-OPS_SALT_SIZE);2024 hashes[n].add(&hashes[n],(unsigned char *)passphrase,j-OPS_SALT_SIZE); 2025 2025 } 2026 2026 openpgpsdk/trunk/src/symmetric.c
r409 r410 3 3 #include <assert.h> 4 4 #include <openssl/cast.h> 5 #if def OPENSSL_IDEA5 #ifndef OPENSSL_NO_IDEA 6 6 #include <openssl/idea.h> 7 7 #endif … … 185 185 }; 186 186 187 #ifndef OPENSSL_NO_IDEA 187 188 static void idea_init(ops_decrypt_t *decrypt) 188 189 { … … 212 213 TRAILER 213 214 }; 215 #endif /* OPENSSL_NO_IDEA */ 214 216 215 217 static void aes256_init(ops_decrypt_t *decrypt) … … 278 280 return &cast5; 279 281 282 #ifndef OPENSSL_NO_IDEA 280 283 case OPS_SA_IDEA: 281 284 return &idea; 285 #endif /* OPENSSL_NO_IDEA */ 282 286 283 287 case OPS_SA_AES_256:
