rsa_print.c
Go to the documentation of this file.
1 /*
2  * Copyright 2006-2017 The OpenSSL Project Authors. All Rights Reserved.
3  *
4  * Licensed under the OpenSSL license (the "License"). You may not use
5  * this file except in compliance with the License. You can obtain a copy
6  * in the file LICENSE in the source distribution or at
7  * https://www.openssl.org/source/license.html
8  */
9 
10 #include <openssl/rsa.h>
11 
12 #include <openssl/evp.h>
13 
14 
15 int RSA_print(BIO *bio, const RSA *rsa, int indent) {
16  EVP_PKEY *pkey = EVP_PKEY_new();
17  int ret = pkey != NULL &&
18  EVP_PKEY_set1_RSA(pkey, (RSA *)rsa) &&
19  EVP_PKEY_print_private(bio, pkey, indent, NULL);
20  EVP_PKEY_free(pkey);
21  return ret;
22 }
EVP_PKEY_new
#define EVP_PKEY_new
Definition: boringssl_prefix_symbols.h:1643
bio_st
Definition: bio.h:822
evp.h
RSA_print
int RSA_print(BIO *bio, const RSA *rsa, int indent)
Definition: rsa_print.c:15
python_utils.upload_rbe_results.indent
indent
Definition: upload_rbe_results.py:183
evp_pkey_st
Definition: evp.h:1046
EVP_PKEY_free
#define EVP_PKEY_free
Definition: boringssl_prefix_symbols.h:1625
rsa.h
EVP_PKEY_set1_RSA
#define EVP_PKEY_set1_RSA
Definition: boringssl_prefix_symbols.h:1653
ret
UniquePtr< SSL_SESSION > ret
Definition: ssl_x509.cc:1029
rsa_st
Definition: rsa.h:732
EVP_PKEY_print_private
#define EVP_PKEY_print_private
Definition: boringssl_prefix_symbols.h:1649


grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:01:13