Changeset 612
- Timestamp:
- 09/03/08 09:43:53
- Files:
-
- openpgpsdk/trunk/Makefile (modified) (1 diff)
- openpgpsdk/trunk/doc/doxygen-user.cfg (modified) (3 diffs)
- openpgpsdk/trunk/include/openpgpsdk/keyring.h (modified) (3 diffs)
- openpgpsdk/trunk/src/app/openpgp.c (modified) (7 diffs)
- openpgpsdk/trunk/src/doxygen.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
openpgpsdk/trunk/Makefile
r605 r612 46 46 cd doc && $(MAKE) 47 47 48 #cunit:49 # if [ ! -d CUnit-2.1-0 ]; then \50 # gunzip CUnit-2.1-0-src.tar.gz; \51 # tar xvf CUnit-2.1-0-src.tar; \52 # (cd CUnit-2.1-0 && ./configure --prefix $(PWD) && make && make install); \53 # fi54 55 56 48 coverity:: 57 49 cov-build --dir coverity make openpgpsdk/trunk/doc/doxygen-user.cfg
r430 r612 448 448 449 449 # XX - changed by weasel 450 INPUT = ../src ../src/ standard../include/openpgpsdk450 INPUT = ../src ../src/lib ../include/openpgpsdk 451 451 452 452 # If the value of the INPUT tag contains directories, you can use the … … 463 463 # If left blank NO is used. 464 464 465 RECURSIVE = YES465 RECURSIVE = NO 466 466 467 467 # The EXCLUDE tag can be used to specify files and/or directories that should … … 487 487 # the \include command). 488 488 489 EXAMPLE_PATH = 489 EXAMPLE_PATH = ../src/examples 490 490 491 491 # If the value of the EXAMPLE_PATH tag contains directories, you can use the openpgpsdk/trunk/include/openpgpsdk/keyring.h
r570 r612 53 53 const ops_public_key_t * 54 54 ops_get_public_key_from_data(const ops_keydata_t *data); 55 ops_boolean_t ops_ key_is_secret(const ops_keydata_t *data);55 ops_boolean_t ops_is_key_secret(const ops_keydata_t *data); 56 56 const ops_secret_key_t * 57 57 ops_get_secret_key_from_data(const ops_keydata_t *data); … … 62 62 63 63 ops_boolean_t ops_keyring_read_from_file(ops_keyring_t *keyring, const ops_boolean_t armour, const char *filename); 64 ops_boolean_t ops_keyring_read_from_mem(ops_keyring_t *keyring, ops_memory_t *mem);64 ops_boolean_t ops_keyring_read_from_mem(ops_keyring_t *keyring, const ops_boolean_t armour, ops_memory_t *mem); 65 65 66 66 char *ops_malloc_passphrase(char *passphrase); 67 67 char *ops_get_passphrase(void); 68 68 69 void ops_keyring_list(const ops_keyring_t* keyring , const char* match);69 void ops_keyring_list(const ops_keyring_t* keyring); 70 70 71 71 void ops_set_secret_key(ops_parser_content_union_t* content,const ops_keydata_t *key); … … 74 74 unsigned ops_get_user_id_count(const ops_keydata_t *key); 75 75 const unsigned char* ops_get_user_id(const ops_keydata_t *key, unsigned index); 76 ops_boolean_t ops_ key_is_supported(const ops_keydata_t *key);77 const ops_keydata_t* ops_keyring_get_key (const ops_keyring_t *keyring, int index);76 ops_boolean_t ops_is_key_supported(const ops_keydata_t *key); 77 const ops_keydata_t* ops_keyring_get_key_by_index(const ops_keyring_t *keyring, int index); 78 78 79 79 ops_user_id_t* ops_add_userid_to_keydata(ops_keydata_t* keydata, const ops_user_id_t* userid); openpgpsdk/trunk/src/app/openpgp.c
r583 r612 342 342 } 343 343 344 ops_keyring_list(myring ,(char *)NULL);344 ops_keyring_list(myring); 345 345 // ops_keyring_free(&kering); 346 346 break; … … 406 406 } 407 407 fprintf(stderr,"before:\n"); 408 ops_keyring_list(myring ,NULL);408 ops_keyring_list(myring); 409 409 410 410 // read new key … … 416 416 417 417 fprintf(stderr,"after:\n"); 418 ops_keyring_list(myring ,NULL);418 ops_keyring_list(myring); 419 419 420 420 break; … … 427 427 } 428 428 429 // mykeydata=ops_keydata_new();430 // if (ops_rsa_generate_keypair(1024,65537,mykeydata)!=ops_true)431 429 uid.user_id=(unsigned char *)opt_userid; 432 430 mykeydata=ops_rsa_create_selfsigned_keypair(numbits,65537,&uid); … … 453 451 ops_write_transferable_secret_key(mykeydata, NULL, 0, ops_false, cinfo); 454 452 ops_teardown_file_write(cinfo,fd); 455 ops_keyring_free( pubring);453 ops_keyring_free(secring); 456 454 if (!ops_keyring_read_from_file(secring,ops_false,secring_name)) 457 455 { … … 490 488 overwrite=ops_true; 491 489 ops_encrypt_file(opt_filename, outputfilename, keydata, armour,overwrite); 492 //ops_keyring_free(&keyring);493 490 break; 494 491 … … 502 499 overwrite=ops_true; 503 500 ops_decrypt_file(opt_filename, NULL, secring, armour,overwrite,callback_cmd_get_passphrase_from_cmdline); 504 //ops_keyring_free(&keyring);505 501 break; 506 502 openpgpsdk/trunk/src/doxygen.c
r430 r612 3 3 * The OpenPGP::SDK library has 2 APIs, which can be used interchangeably by a developer. 4 4 5 \section section_ std_api The StandardAPI5 \section section_highlevel_api The High-Level API 6 6 7 The StandardAPI provides easy access to common crypto tasks.7 The High-Level API provides easy access to common crypto tasks. 8 8 9 9 Examples are: … … 12 12 - "sign this text with that key". 13 13 14 It is built on functions offered by the AdvancedAPI.14 It is built on functions offered by the Core API. 15 15 16 Developers should initially consider using the Standard API, unless they need the additional control available in the AdvancedAPI.16 Developers should initially consider using the High-Level API, unless they need the additional control available in the Core API. 17 17 18 - \ref StandardAPI : follow this link for more details18 - \ref HighLevelAPI : follow this link for more details 19 19 20 \section section_ adv_api The AdvancedAPI20 \section section_core_api The Core API 21 21 22 The AdvancedAPI offers detailed control over all aspects of the SDK.22 The Core API offers detailed control over all aspects of the SDK. 23 23 24 - \ref AdvancedAPI : follow this link for more details24 - \ref CoreAPI : follow this link for more details 25 25 26 26 */ 27 27 28 /** @defgroup StandardAPI StandardAPI29 This API provides basic high-level functionality, which should be30 suitable for most users. 28 /** @defgroup HighLevelAPI High Level API 29 \brief This API provides basic high-level functionality, which should be 30 suitable for most users. 31 31 32 If you want more fine-grained control, consider using the Advanced API. 32 If you want more fine-grained control, consider using the Core API. 33 34 Expected modules: 35 encrypt, decrypt, sign, verify, keys, print 33 36 */ 34 37 35 /** @defgroup AdvancedAPI AdvancedAPI38 /** @defgroup CoreAPI Core API 36 39 This API provides detailed control over all aspects of the SDK. 37 40 38 You may find that the easier-to-use StandardAPI meets your needs.41 You may find that the easier-to-use High Level API meets your needs. 39 42 */ 43 44 /** \defgroup HighLevel_Misc Miscellaneous 45 \ingroup HighLevelAPI 46 */ 47 48 /** 49 \defgroup HighLevel_Keyring Keyring 50 \ingroup HighLevelAPI 51 */ 52 53 /** 54 \defgroup HighLevel_KeyringRead Read Keyring 55 \ingroup HighLevel_Keyring 56 */ 57 58 /** 59 \defgroup HighLevel_KeyringList List Keyring 60 \ingroup HighLevel_Keyring 61 */ 62 63 /** 64 \defgroup HighLevel_KeyringFind Find Key 65 \ingroup HighLevel_Keyring 66 */ 67 68 /** 69 \defgroup HighLevel_KeyringMemory Memory Ops 70 \ingroup HighLevel_Keyring 71 */ 72 73 /** 74 \defgroup HighLevel_Key Key 75 \ingroup HighLevel_Keyring 76 */ 77 78 /** 79 \defgroup HighLevel_Parse Parse 80 \ingroup HighLevelAPI 81 */ 82 83 /** 84 \defgroup HighLevel_Readers Readers 85 */ 86 87 /** 88 \defgroup HighLevel_Writers Writers 89 */ 90 91 /** 92 \defgroup Core_Callbacks Callbacks 93 \ingroup CoreAPI 94 */ 95 96 /* 97 \defgroup Create 98 \ingroup CoreAPI 99 */ 100 101 /* 102 */ 40 103 41 104 /**
