xref: /openssl/doc/man3/RSA_print.pod (revision 3dbf8243)
1=pod
2
3=head1 NAME
4
5RSA_print, RSA_print_fp,
6DSAparams_print, DSAparams_print_fp, DSA_print, DSA_print_fp,
7DHparams_print, DHparams_print_fp - print cryptographic parameters
8
9=head1 SYNOPSIS
10
11 #include <openssl/rsa.h>
12
13The following functions have been deprecated since OpenSSL 3.0, and can be
14hidden entirely by defining B<OPENSSL_API_COMPAT> with a suitable version value,
15see L<openssl_user_macros(7)>:
16
17 int RSA_print(BIO *bp, const RSA *x, int offset);
18 int RSA_print_fp(FILE *fp, const RSA *x, int offset);
19
20 #include <openssl/dsa.h>
21
22The following functions have been deprecated since OpenSSL 3.0, and can be
23hidden entirely by defining B<OPENSSL_API_COMPAT> with a suitable version value,
24see L<openssl_user_macros(7)>:
25
26 int DSAparams_print(BIO *bp, const DSA *x);
27 int DSAparams_print_fp(FILE *fp, const DSA *x);
28 int DSA_print(BIO *bp, const DSA *x, int offset);
29 int DSA_print_fp(FILE *fp, const DSA *x, int offset);
30
31 #include <openssl/dh.h>
32
33The following functions have been deprecated since OpenSSL 3.0, and can be
34hidden entirely by defining B<OPENSSL_API_COMPAT> with a suitable version value,
35see L<openssl_user_macros(7)>:
36
37 int DHparams_print(BIO *bp, DH *x);
38 int DHparams_print_fp(FILE *fp, const DH *x);
39
40=head1 DESCRIPTION
41
42All of the functions described on this page are deprecated.
43Applications should instead use L<EVP_PKEY_print_params(3)> and
44L<EVP_PKEY_print_private(3)>.
45
46A human-readable hexadecimal output of the components of the RSA
47key, DSA parameters or key or DH parameters is printed to B<bp> or B<fp>.
48
49The output lines are indented by B<offset> spaces.
50
51=head1 RETURN VALUES
52
53DSAparams_print(), DSAparams_print_fp(), DSA_print(), and DSA_print_fp()
54return 1 for success and 0 or a negative value for failure.
55
56DHparams_print() and DHparams_print_fp() return 1 on success, 0 on error.
57
58=head1 SEE ALSO
59
60 L<EVP_PKEY_print_params(3)>,
61 L<EVP_PKEY_print_private(3)>,
62 L<BN_bn2bin(3)>
63
64=head1 HISTORY
65
66All of these functions were deprecated in OpenSSL 3.0.
67
68=head1 COPYRIGHT
69
70Copyright 2000-2020 The OpenSSL Project Authors. All Rights Reserved.
71
72Licensed under the Apache License 2.0 (the "License").  You may not use
73this file except in compliance with the License.  You can obtain a copy
74in the file LICENSE in the source distribution or at
75L<https://www.openssl.org/source/license.html>.
76
77=cut
78