def myfunc(realm, may_save, pool): self.assertEquals("somerealm", realm) ssl_cred = core.svn_auth_cred_ssl_client_cert_t() ssl_cred.cert_file = "my-certs-file" ssl_cred.may_save = False return ssl_cred
def _ssl_client_cert(realm, may_save, pool): ret = _prompt.ssl_client_cert(realm, may_save, pool) creds = core.svn_auth_cred_ssl_client_cert_t() (creds.cert_file, creds.may_save) = ret return creds
def myfunc(realm, may_save, pool): self.assertEqual(b"somerealm", realm) ssl_cred = core.svn_auth_cred_ssl_client_cert_t() ssl_cred.cert_file = b"my-certs-file" ssl_cred.may_save = False return ssl_cred
def _ssl_client_cert(realm, may_save, pool): ret = _prompt.ssl_client_cert(realm, may_save, pool) creds = core.svn_auth_cred_ssl_client_cert_t() (creds.cert_file, creds.may_save) = ret return creds