Opened 14 years ago

#1019 new Enhancement

crypt_prog output should be improved

Reported by: teleyinex Owned by: davea
Priority: Minor Milestone: Undetermined
Component: Server - Other Version: 6.11.9
Keywords: crypt_prog, output, documentation, help Cc: davea@…

Description

When you type in the command line: crypt_prog you only get the following message:

"missing command"

The output doesn't help the user giving an option to obtain help from the command. On the other side, if you type: crypt_prog -help, you get the following message:

"unrecognized command"

After checking the source code, I realized that this command lacks this option. This command line argument should be included to help users understand what this command does, and more importantly all the options that can be managed.

I have created a patch that addresses the described problems. If the patch is applied, when you run the command: crypt_prog you obtain the following message:

missing command

Try `crypt_prog -help` for more information.

If then you run crypt_prog -help you obtain the following output:

Utility program for encryption.
-genkey n private_keyfile public_keyfile
    create a key pair with n bits (512 <= n <= 1024)
    write it in hex notation
-sign file private_keyfile
    create a signature for a given file
    write it in hex notation
-sign_string string private_keyfile
    create a signature for a given string
    write it in hex notation
-verify file signature_file public_keyfile
    verify a signature
-test_crypt private_keyfile public_keyfile
    test encrypt/decrypt
-convkey o2b/b2o priv/pub input_file output_file
    convert keys between BOINC and OpenSSL format
-cert_verify file signature_file certificate_dir
    verify a signature using a directory of certificates

This information has been obtained from the beginning of the file crypt_prog.cpp. Adjoining is the patch.

Attachments (1)

patch.diff (1.8 KB) - added by teleyinex 14 years ago.
Patch for improving the output of crypt_prog.

Download all attachments as: .zip

Change History (1)

Changed 14 years ago by teleyinex

Attachment: patch.diff added

Patch for improving the output of crypt_prog.

Note: See TracTickets for help on using tickets.