Home
last modified time | relevance | path

Searched refs:pw_info (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Modules/
D_ssl.c2630 _pwinfo_set(_PySSLPasswordInfo *pw_info, PyObject* password, in _pwinfo_set() argument
2665 PyMem_Free(pw_info->password); in _pwinfo_set()
2666 pw_info->password = PyMem_Malloc(size); in _pwinfo_set()
2667 if (!pw_info->password) { in _pwinfo_set()
2672 memcpy(pw_info->password, data, size); in _pwinfo_set()
2673 pw_info->size = (int)size; in _pwinfo_set()
2686 _PySSLPasswordInfo *pw_info = (_PySSLPasswordInfo*) userdata; in _password_callback() local
2689 PySSL_END_ALLOW_THREADS_S(pw_info->thread_state); in _password_callback()
2691 if (pw_info->callable) { in _password_callback()
2692 fn_ret = PyObject_CallFunctionObjArgs(pw_info->callable, NULL); in _password_callback()
[all …]
/external/python/cpython3/Modules/
D_ssl.c3868 _pwinfo_set(_PySSLPasswordInfo *pw_info, PyObject* password, in _pwinfo_set() argument
3903 PyMem_Free(pw_info->password); in _pwinfo_set()
3904 pw_info->password = PyMem_Malloc(size); in _pwinfo_set()
3905 if (!pw_info->password) { in _pwinfo_set()
3910 memcpy(pw_info->password, data, size); in _pwinfo_set()
3911 pw_info->size = (int)size; in _pwinfo_set()
3924 _PySSLPasswordInfo *pw_info = (_PySSLPasswordInfo*) userdata; in _password_callback() local
3927 PySSL_END_ALLOW_THREADS_S(pw_info->thread_state); in _password_callback()
3929 if (pw_info->callable) { in _password_callback()
3930 fn_ret = _PyObject_CallNoArg(pw_info->callable); in _password_callback()
[all …]