SSL_CTX_set_verify.pod: move a typedef in front of its first usage
authorBeat Bolli <dev@drbeat.li>
Fri, 20 Jan 2017 19:04:25 +0000 (20:04 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 8 Jun 2017 10:54:16 +0000 (11:54 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1956)

doc/man3/SSL_CTX_set_verify.pod

index 53615b528144a0ada49b1896cc843020068037eb..9e634dd91d43c592409eeb7fb43027ba897a13d9 100644 (file)
@@ -12,6 +12,8 @@ SSL_verify_cb
 
  #include <openssl/ssl.h>
 
+ typedef int (*SSL_verify_cb)(int preverify_ok, X509_STORE_CTX *x509_ctx);
+
  void SSL_CTX_set_verify(SSL_CTX *ctx, int mode, SSL_verify_cb verify_callback);
  void SSL_set_verify(SSL *s, int mode, SSL_verify_cb verify_callback);
  SSL_get_ex_data_X509_STORE_CTX_idx(void);
@@ -19,9 +21,6 @@ SSL_verify_cb
  void SSL_CTX_set_verify_depth(SSL_CTX *ctx, int depth);
  void SSL_set_verify_depth(SSL *s, int depth);
 
-
- typedef int (*SSL_verify_cb)(int preverify_ok, X509_STORE_CTX *x509_ctx);
-
 =head1 DESCRIPTION
 
 SSL_CTX_set_verify() sets the verification flags for B<ctx> to be B<mode> and