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 141 141 142 142 #define TLS_method SSLv23_method 143 143 144 staticint X509_NAME_ENTRY_set(const X509_NAME_ENTRY *ne)144 int X509_NAME_ENTRY_set(const X509_NAME_ENTRY *ne) 145 145 { 146 146 return ne->set; 147 147 } … … 153 153 } 154 154 #endif 155 155 156 staticpem_password_cb *SSL_CTX_get_default_passwd_cb(SSL_CTX *ctx)156 pem_password_cb *SSL_CTX_get_default_passwd_cb(SSL_CTX *ctx) 157 157 { 158 158 return ctx->default_passwd_callback; 159 159 } 160 160 161 staticvoid *SSL_CTX_get_default_passwd_cb_userdata(SSL_CTX *ctx)161 void *SSL_CTX_get_default_passwd_cb_userdata(SSL_CTX *ctx) 162 162 { 163 163 return ctx->default_passwd_callback_userdata; 164 164 } 165 165 166 static int X509_OBJECT_get_type(X509_OBJECT *x)166 int X509_OBJECT_get_type(const X509_OBJECT *x) 167 167 { 168 168 return x->type; 169 169 } 170 170 171 static X509 *X509_OBJECT_get0_X509(X509_OBJECT *x)171 X509 *X509_OBJECT_get0_X509(const X509_OBJECT *x) 172 172 { 173 173 return x->data.x509; 174 174 } 175 175 176 staticint BIO_up_ref(BIO *b)176 int BIO_up_ref(BIO *b) 177 177 { 178 178 CRYPTO_add(&b->references, 1, CRYPTO_LOCK_BIO); 179 179 return 1; 180 180 } 181 181 182 staticSTACK_OF(X509_OBJECT) *X509_STORE_get0_objects(X509_STORE *store) {182 STACK_OF(X509_OBJECT) *X509_STORE_get0_objects(X509_STORE *store) { 183 183 return store->objs; 184 184 } 185 185 186 staticX509_VERIFY_PARAM *X509_STORE_get0_param(X509_STORE *store)186 X509_VERIFY_PARAM *X509_STORE_get0_param(X509_STORE *store) 187 187 { 188 188 return store->param; 189 189 }