EVP_PKEY_print_private(3) OpenSSL EVP_PKEY_print_private(3) NNAAMMEE EVP_PKEY_print_public, EVP_PKEY_print_private, EVP_PKEY_print_params - public key algorithm printing routines. SSYYNNOOPPSSIISS #include int EVP_PKEY_print_public(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx); int EVP_PKEY_print_private(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx); int EVP_PKEY_print_params(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx); DDEESSCCRRIIPPTTIIOONN The functions _E_V_P___P_K_E_Y___p_r_i_n_t___p_u_b_l_i_c_(_), _E_V_P___P_K_E_Y___p_r_i_n_t___p_r_i_v_a_t_e_(_) and _E_V_P___P_K_E_Y___p_r_i_n_t___p_a_r_a_m_s_(_) print out the public, private or parameter com- ponents of key ppkkeeyy respectively. The key is sent to BIO oouutt in human readable form. The parameter iinnddeenntt indicated how far the printout should be indented. The ppccttxx parameter allows the print output to be finely tuned by using ASN1 printing options. If ppccttxx is set to NULL then default values will be used. NNOOTTEESS Currently no public key algorithms include any options in the ppccttxx parameter parameter. If the key does not include all the components indicated by the func- tion then only those contained in the key will be printed. For example passing a public key to _E_V_P___P_K_E_Y___p_r_i_n_t___p_r_i_v_a_t_e_(_) will only print the public components. RREETTUURRNN VVAALLUUEESS These functions all return 1 for success and 0 or a negative value for failure. In particular a return value of -2 indicates the operation is not supported by the public key algorithm. SSEEEE AALLSSOO _E_V_P___P_K_E_Y___C_T_X___n_e_w(3), _E_V_P___P_K_E_Y___k_e_y_g_e_n(3) HHIISSTTOORRYY These functions were first added to OpenSSL 1.0.0. 1.0.1u 2016-09-22 EVP_PKEY_print_private(3)