Changeset d564c3d for functions.c
- Timestamp:
- Mar 17, 2010, 11:15:36 PM (15 years ago)
- Branches:
- master, release-1.10, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 2b7ef0a
- Parents:
- dfe94f9
- git-author:
- Nelson Elhage <nelhage@ksplice.com> (03/17/10 22:55:20)
- git-committer:
- Nelson Elhage <nelhage@ksplice.com> (03/17/10 23:15:36)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
functions.c
rdfe94f9 rd564c3d 12 12 #include <signal.h> 13 13 #include "owl.h" 14 #include "filterproc.h" 14 15 15 16 char *owl_function_command(const char *cmdbuff) … … 402 403 char *cryptmsg; 403 404 owl_message *m; 405 const char *argv[7]; 406 int rv, status; 404 407 405 408 /* create the zwrite and send the message */ … … 411 414 412 415 mymsg=owl_zwrite_get_message(&z); 413 #ifdef OWL_ENABLE_ZCRYPT 414 cryptmsg = owl_zcrypt_encrypt(mymsg, owl_zwrite_get_class(&z), owl_zwrite_get_instance(&z)); 415 if (!cryptmsg) { 416 417 argv[0] = "zcrypt"; 418 argv[1] = "-E"; 419 argv[2] = "-c"; argv[3] = owl_zwrite_get_class(&z); 420 argv[4] = "-i"; argv[5] = owl_zwrite_get_instance(&z); 421 argv[6] = NULL; 422 423 rv = call_filter("zcrypt", argv, mymsg, &cryptmsg, &status); 424 425 if (rv || status) { 426 if(cryptmsg) owl_free(cryptmsg); 416 427 owl_function_error("Error in zcrypt, possibly no key found. Message not sent."); 417 428 owl_function_beep(); … … 419 430 return; 420 431 } 421 #else422 cryptmsg=owl_strdup(mymsg);423 #endif424 432 425 433 owl_zwrite_set_message(&z, cryptmsg);
Note: See TracChangeset
for help on using the changeset viewer.