version 1.16, 2019/01/18 22:47:34 |
version 1.17, 2019/02/09 06:27:37 |
|
|
* [including the GNU Public Licence.] |
* [including the GNU Public Licence.] |
*/ |
*/ |
|
|
#include <ctype.h> |
|
#include <stdio.h> |
#include <stdio.h> |
#include <stdlib.h> |
#include <stdlib.h> |
#include <string.h> |
#include <string.h> |
|
|
}; |
}; |
|
|
static void |
static void |
show_ciphers(const OBJ_NAME *name, void *arg) |
|
{ |
|
static int n; |
|
|
|
if (!islower((unsigned char)*name->name)) |
|
return; |
|
|
|
fprintf(stderr, " -%-24s%s", name->name, (++n % 3 ? "" : "\n")); |
|
} |
|
|
|
static void |
|
enc_usage(void) |
enc_usage(void) |
{ |
{ |
fprintf(stderr, "usage: enc -ciphername [-AadePp] [-base64] " |
fprintf(stderr, "usage: enc -ciphername [-AadePp] [-base64] " |
|
|
fprintf(stderr, "\n"); |
fprintf(stderr, "\n"); |
|
|
fprintf(stderr, "Valid ciphername values:\n\n"); |
fprintf(stderr, "Valid ciphername values:\n\n"); |
OBJ_NAME_do_all_sorted(OBJ_NAME_TYPE_CIPHER_METH, show_ciphers, NULL); |
OBJ_NAME_do_all_sorted(OBJ_NAME_TYPE_CIPHER_METH, show_cipher, NULL); |
fprintf(stderr, "\n"); |
fprintf(stderr, "\n"); |
} |
} |
|
|