Ticket #56965: Modules__ssl.c.diff

File Modules__ssl.c.diff, 1.4 KB (added by dubiousjim, 6 years ago)
  • Modules/_ssl.c

    old new  
    141141
    142142#define TLS_method SSLv23_method
    143143
    144 static int X509_NAME_ENTRY_set(const X509_NAME_ENTRY *ne)
     144int X509_NAME_ENTRY_set(const X509_NAME_ENTRY *ne)
    145145{
    146146    return ne->set;
    147147}
     
    153153}
    154154#endif
    155155
    156 static pem_password_cb *SSL_CTX_get_default_passwd_cb(SSL_CTX *ctx)
     156pem_password_cb *SSL_CTX_get_default_passwd_cb(SSL_CTX *ctx)
    157157{
    158158    return ctx->default_passwd_callback;
    159159}
    160160
    161 static void *SSL_CTX_get_default_passwd_cb_userdata(SSL_CTX *ctx)
     161void *SSL_CTX_get_default_passwd_cb_userdata(SSL_CTX *ctx)
    162162{
    163163    return ctx->default_passwd_callback_userdata;
    164164}
    165165
    166 static int X509_OBJECT_get_type(X509_OBJECT *x)
     166int X509_OBJECT_get_type(const X509_OBJECT *x)
    167167{
    168168    return x->type;
    169169}
    170170
    171 static X509 *X509_OBJECT_get0_X509(X509_OBJECT *x)
     171X509 *X509_OBJECT_get0_X509(const X509_OBJECT *x)
    172172{
    173173    return x->data.x509;
    174174}
    175175
    176 static int BIO_up_ref(BIO *b)
     176int BIO_up_ref(BIO *b)
    177177{
    178178    CRYPTO_add(&b->references, 1, CRYPTO_LOCK_BIO);
    179179    return 1;
    180180}
    181181
    182 static STACK_OF(X509_OBJECT) *X509_STORE_get0_objects(X509_STORE *store) {
     182STACK_OF(X509_OBJECT) *X509_STORE_get0_objects(X509_STORE *store) {
    183183    return store->objs;
    184184}
    185185
    186 static X509_VERIFY_PARAM *X509_STORE_get0_param(X509_STORE *store)
     186X509_VERIFY_PARAM *X509_STORE_get0_param(X509_STORE *store)
    187187{
    188188    return store->param;
    189189}