diff options
Diffstat (limited to 'apps/include')
-rw-r--r-- | apps/include/ec_common.h | 23 | ||||
-rw-r--r-- | apps/include/opt.h | 1 |
2 files changed, 24 insertions, 0 deletions
diff --git a/apps/include/ec_common.h b/apps/include/ec_common.h new file mode 100644 index 0000000000..4ed12163fa --- /dev/null +++ b/apps/include/ec_common.h @@ -0,0 +1,23 @@ +/* + * Copyright 2020 The OpenSSL Project Authors. All Rights Reserved. + * + * Licensed under the Apache License 2.0 (the "License"). You may not use + * this file except in compliance with the License. You can obtain a copy + * in the file LICENSE in the source distribution or at + * https://www.openssl.org/source/license.html + */ + +#ifndef OPENSSL_NO_EC +static const char *point_format_options[] = { + "uncompressed", + "compressed", + "hybrid", + NULL +}; + +static const char *asn1_encoding_options[] = { + "named_curve", + "explicit", + NULL +}; +#endif diff --git a/apps/include/opt.h b/apps/include/opt.h index 15375e3a80..34298cf50d 100644 --- a/apps/include/opt.h +++ b/apps/include/opt.h @@ -363,6 +363,7 @@ int opt_umax(const char *arg, uintmax_t *result); # define uintmax_t unsigned long #endif int opt_pair(const char *arg, const OPT_PAIR * pairs, int *result); +int opt_string(const char *name, const char **options); int opt_cipher(const char *name, const EVP_CIPHER **cipherp); int opt_md(const char *name, const EVP_MD **mdp); char *opt_arg(void); |