Changeset 451
- Timestamp:
- 04/08/07 12:06:36
- Files:
-
- openpgpsdk/trunk/examples/decrypt.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
openpgpsdk/trunk/examples/decrypt.c
r448 r451 132 132 133 133 case 'k': 134 keyfile=optarg;135 break;134 keyfile=optarg; 135 break; 136 136 137 137 case 'e': 138 encfile=optarg;139 break;138 encfile=optarg; 139 break; 140 140 141 141 default: … … 143 143 } 144 144 145 argc-=optind;146 argv+=optind;145 argc-=optind; 146 argv+=optind; 147 147 148 if (argc!=0)148 if (argc!=0) 149 149 { 150 usage();151 exit(1);150 usage(); 151 exit(1); 152 152 } 153 153 154 if (!keyfile || !encfile)154 if (!keyfile || !encfile) 155 155 { 156 usage();157 exit(1);156 usage(); 157 exit(1); 158 158 } 159 /* 160 keyfile=argv[optind++]; 161 encfile=argv[optind++]; 162 */ 159 163 160 ops_init(); 164 165 // Read in keyring166 161 167 162 ops_keyring_read(&keyring,keyfile); … … 177 172 178 173 // Now do file 179 180 174 ops_reader_set_fd(pinfo,fd); 181 175
