diff options
Diffstat (limited to 'lib/libcrypto/doc/EVP_PKEY_keygen.pod')
-rw-r--r-- | lib/libcrypto/doc/EVP_PKEY_keygen.pod | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/lib/libcrypto/doc/EVP_PKEY_keygen.pod b/lib/libcrypto/doc/EVP_PKEY_keygen.pod index 378fb310ffd..05ea04be11f 100644 --- a/lib/libcrypto/doc/EVP_PKEY_keygen.pod +++ b/lib/libcrypto/doc/EVP_PKEY_keygen.pod @@ -132,20 +132,26 @@ Example of generation callback for OpenSSL public key implementations: EVP_PKEY_CTX_set_app_data(ctx, status_bio); - static int genpkey_cb(EVP_PKEY_CTX *ctx) - { - char c='*'; + static int + genpkey_cb(EVP_PKEY_CTX *ctx) + { + char c = '*'; BIO *b = EVP_PKEY_CTX_get_app_data(ctx); int p; + p = EVP_PKEY_CTX_get_keygen_info(ctx, 0); - if (p == 0) c='.'; - if (p == 1) c='+'; - if (p == 2) c='*'; - if (p == 3) c='\n'; + if (p == 0) + c='.'; + if (p == 1) + c='+'; + if (p == 2) + c='*'; + if (p == 3) + c='\n'; BIO_write(b,&c,1); (void)BIO_flush(b); return 1; - } + } =head1 SEE ALSO |