diff options
Diffstat (limited to 'src/lib/libcrypto/doc/EVP_PKEY_keygen.pod')
-rw-r--r-- | src/lib/libcrypto/doc/EVP_PKEY_keygen.pod | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/src/lib/libcrypto/doc/EVP_PKEY_keygen.pod b/src/lib/libcrypto/doc/EVP_PKEY_keygen.pod index 378fb310ff..05ea04be11 100644 --- a/src/lib/libcrypto/doc/EVP_PKEY_keygen.pod +++ b/src/lib/libcrypto/doc/EVP_PKEY_keygen.pod | |||
@@ -132,20 +132,26 @@ Example of generation callback for OpenSSL public key implementations: | |||
132 | 132 | ||
133 | EVP_PKEY_CTX_set_app_data(ctx, status_bio); | 133 | EVP_PKEY_CTX_set_app_data(ctx, status_bio); |
134 | 134 | ||
135 | static int genpkey_cb(EVP_PKEY_CTX *ctx) | 135 | static int |
136 | { | 136 | genpkey_cb(EVP_PKEY_CTX *ctx) |
137 | char c='*'; | 137 | { |
138 | char c = '*'; | ||
138 | BIO *b = EVP_PKEY_CTX_get_app_data(ctx); | 139 | BIO *b = EVP_PKEY_CTX_get_app_data(ctx); |
139 | int p; | 140 | int p; |
141 | |||
140 | p = EVP_PKEY_CTX_get_keygen_info(ctx, 0); | 142 | p = EVP_PKEY_CTX_get_keygen_info(ctx, 0); |
141 | if (p == 0) c='.'; | 143 | if (p == 0) |
142 | if (p == 1) c='+'; | 144 | c='.'; |
143 | if (p == 2) c='*'; | 145 | if (p == 1) |
144 | if (p == 3) c='\n'; | 146 | c='+'; |
147 | if (p == 2) | ||
148 | c='*'; | ||
149 | if (p == 3) | ||
150 | c='\n'; | ||
145 | BIO_write(b,&c,1); | 151 | BIO_write(b,&c,1); |
146 | (void)BIO_flush(b); | 152 | (void)BIO_flush(b); |
147 | return 1; | 153 | return 1; |
148 | } | 154 | } |
149 | 155 | ||
150 | =head1 SEE ALSO | 156 | =head1 SEE ALSO |
151 | 157 | ||