History log of /openbsd/usr.bin/openssl/prime.c (Results 1 – 18 of 18)
Revision Date Author Comments
# 440d1414 23-Jul-2023 tb <tb@openbsd.org>

sprinkle some void between () in function definitions


# e7718ada 06-Mar-2023 tb <tb@openbsd.org>

Rename struct ${app}_config to plain cfg

All the structs are static and we need to reach into them many times.
Having a shorter name is more concise and results in less visual clutter.
It also avoid

Rename struct ${app}_config to plain cfg

All the structs are static and we need to reach into them many times.
Having a shorter name is more concise and results in less visual clutter.
It also avoids many overlong lines and we will be able to get rid of some
unfortunate line wrapping down the road.

Discussed with jsing

show more ...


# efc7e65f 05-Mar-2023 tb <tb@openbsd.org>

openssl: make all config structs static

These are per-app, so per-file. Most of them already are static, adjust
the rest of them.


# b6fa500d 26-Dec-2022 jmc <jmc@openbsd.org>

spelling fix; from paul tagliamonte
ok tb


# 46f4e7fa 11-Nov-2022 joshua <joshua@openbsd.org>

Remove the legacy interactive mode from openssl(1).

This removes the legacy interactive mode from openssl(1) since it is
rarely used, complicates the code, and has also been removed from
OpenSSL in

Remove the legacy interactive mode from openssl(1).

This removes the legacy interactive mode from openssl(1) since it is
rarely used, complicates the code, and has also been removed from
OpenSSL in version 3.x.x.

ok tb@ jsing@

show more ...


# ea149709 14-Jul-2019 guenther <guenther@openbsd.org>

Mark the initialized struct options arrays as both static and const.
This moves them from .data to .data.rel.ro

ok deraadt@ inoguchi@


# d1ddd169 20-Jan-2019 tb <tb@openbsd.org>

Fix BN_is_prime_* calls in openssl(1), the API returns -1 on error.

Found thanks to BoringSSL's commit 53409ee3d7595ed37da472bc73b010cd2c8a5ffd
by David Benjamin.

ok djm, jsing


# 1020b5f1 07-Feb-2018 jsing <jsing@openbsd.org>

Indent labels with a single space so that diff prototypes are more useful.


# e370f0ee 17-Oct-2015 doug <doug@openbsd.org>

Exit if a pledge call fails in non-interactive mode.

ok semarie@


# 9bc487ad 10-Oct-2015 doug <doug@openbsd.org>

Initial support for pledges in openssl(1) commands.

openssl(1) has two mechanisms for operating: either a single execution
of one command (looking at argv[0] or argv[1]) or as an interactive
session

Initial support for pledges in openssl(1) commands.

openssl(1) has two mechanisms for operating: either a single execution
of one command (looking at argv[0] or argv[1]) or as an interactive
session than may execute any number of commands.

We already have a top level pledge that should cover all commands
and that's what interactive mode must continue using. However, we can
tighten up the pledges when only executing one command.

This is an initial stab at support and may contain regressions. Most
commands only need "stdio rpath wpath cpath". The pledges could be
further restricted by evaluating the situation after parsing options.

deraadt@ and beck@ are roughly fine with this approach.

show more ...


# e97f7a80 12-Sep-2015 lteo <lteo@openbsd.org>

Fix the openssl(1) prime command: When checking a decimal number for
primality, do not unnecessarily convert the original decimal number to
hex in the output.

Hex numbers explicitly specified with -

Fix the openssl(1) prime command: When checking a decimal number for
primality, do not unnecessarily convert the original decimal number to
hex in the output.

Hex numbers explicitly specified with -hex remain unchanged.

ok beck@ deraadt@ jsing@ miod@

show more ...


# 20c6dab5 22-Aug-2015 jsing <jsing@openbsd.org>

Remove all duplicate prototypes for *_main functions (these are already
provided by progs.h). Also, move the FUNCTION type (and flags) into
openssl.c since that is the only place of use. Lastly, remo

Remove all duplicate prototypes for *_main functions (these are already
provided by progs.h). Also, move the FUNCTION type (and flags) into
openssl.c since that is the only place of use. Lastly, remove pointless
'extern' from the prototypes and use char **argv instead of char *argv[]
(the former is used elsewhere).

ok deraadt@ doug@

show more ...


# a7b8f3c1 11-Feb-2015 doug <doug@openbsd.org>

Enable building with -DOPENSSL_NO_DEPRECATED.

If you didn't enable deprecated code, there were missing err.h and
bn.h includes. This commit allows building with or without deprecated
code.

This wa

Enable building with -DOPENSSL_NO_DEPRECATED.

If you didn't enable deprecated code, there were missing err.h and
bn.h includes. This commit allows building with or without deprecated
code.

This was not derived from an OpenSSL commit. However, they recently
enabled OPENSSL_NO_DEPRECATED in git and fixed these header problems
in a different way.

Verified with clang that this only changes line numbers in the generated
asm.

ok miod@

show more ...


# 27f75401 13-Jan-2015 lteo <lteo@openbsd.org>

Implement more thorough error checks:

- Check the return value of every relevant function call.

- If BIO_new() returns NULL instead of a valid BIO, do not attempt to
blindly use the NULL value as

Implement more thorough error checks:

- Check the return value of every relevant function call.

- If BIO_new() returns NULL instead of a valid BIO, do not attempt to
blindly use the NULL value as a BIO throughout the rest of the code.

- Ensure that bio_out is freed by BIO_free_all() at the end of all
error paths.

ok doug@

show more ...


# beba0da1 28-Dec-2014 jsing <jsing@openbsd.org>

Provide a mechanism for option parsing to return the number of arguments
that it has consumed. This allows for the handling of multiple unnamed
arguments, including lists of filenames.


# d220e929 13-Oct-2014 bcook <bcook@openbsd.org>

prefer C99 array initialization syntax.

use C99 array initialization syntax for strict C compilers.

from kinichiro, found building with HP/UX compiler

ok deraadt@, guenther@


# 4058704f 27-Aug-2014 jsing <jsing@openbsd.org>

Convert openssl(1) prime to the new options/usage handling.


# dab3f910 26-Aug-2014 jsing <jsing@openbsd.org>

Move openssl(1) from /usr/sbin/openssl to /usr/bin/openssl, since it is not
a system/superuser binary. At the same time, move the source code from its
current lib/libssl/src/apps location to a more a

Move openssl(1) from /usr/sbin/openssl to /usr/bin/openssl, since it is not
a system/superuser binary. At the same time, move the source code from its
current lib/libssl/src/apps location to a more appropriate home under
usr.bin/openssl.

ok deraadt@ miod@

show more ...