man page for SSL_CTX_set_info_callback gives incorrect signature

Bug #1147526 reported by Jean-Paul Calderone
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openssl (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The man page give these signatures:

        void SSL_CTX_set_info_callback(SSL_CTX *ctx, void (*callback)());
        void (*SSL_CTX_get_info_callback(const SSL_CTX *ctx))();

        void SSL_set_info_callback(SSL *ssl, void (*callback)());
        void (*SSL_get_info_callback(const SSL *ssl))();

but the correct signatures are actually:

    void SSL_CTX_set_info_callback(SSL_CTX *ctx, void (*cb)(const SSL *ssl,int type,int val));
    void (*SSL_CTX_get_info_callback(SSL_CTX *ctx))(const SSL *ssl,int type,int val);

    void SSL_set_info_callback(SSL *ssl, void (*cb)(const SSL *ssl,int type,int val));
    void (*SSL_get_info_callback(const SSL *ssl))(const SSL *ssl,int type,int val);

Revision history for this message
Adrien Nader (adrien) wrote :

Copying this from 1297025 (from the same reporter):

The man page for SSL_CTX_set_session_cache_mode gives its signature as:

    long SSL_CTX_set_session_cache_mode(SSL_CTX ctx, long mode);

The correct signature is:

    long SSL_CTX_set_session_cache_mode(SSL_CTX *ctx, long mode);

The same goes for SSL_CTX_get_session_cache_mode, documented in the same manual page.

Same bug in the SSL_CTX_add_extra_chain_cert manual page.

Changed in openssl (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.