Searched refs:pw_info (Results 1 – 2 of 2) sorted by relevance
2630 _pwinfo_set(_PySSLPasswordInfo *pw_info, PyObject* password, in _pwinfo_set() argument2665 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() local2689 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 …]
3868 _pwinfo_set(_PySSLPasswordInfo *pw_info, PyObject* password, in _pwinfo_set() argument3903 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() local3927 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 …]