Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi,
I want to connect a web server through HTTPS, so i copied some codes like this:

IWebOpts *m_piSSLRoots;
...
int nRet = ISHELL_CreateInstance(m_pMe->m_pIShell, AEECLSID_SSLROOTCERTS, (void **)&m_piSSLRoots);
if (nRet == ENOMEMORY)
{
return FALSE;
}
if (nRet == ECLASSNOTSUPPORT)
{
return FALSE;
}
...
IWEB_GetResponse(pWeb->m_handle,
(pWeb->m_handle, &pwa->piWResp, &pwa->cb, pszUrl,
WEBOPT_HANDLERDATA, pwa,
WEBOPT_HEADER, pWeb->m_szHeader,
WEBOPT_HEADERHANDLER, CWeb::WebAction_Header,
WEBOPT_STATUSHANDLER, CWeb::WebAction_Status,
WEBOPT_DEFAULTS, pWeb->m_piSSLRoots, //HTTPS
WEBOPT_END));

But it's too bad. When i run it in my simulator, this line of code

int nRet = ISHELL_CreateInstance(m_pMe->m_pIShell, AEECLSID_SSLROOTCERTS, (void **)&m_piSSLRoots);

will return ECLASSNOTSUPPORT.

I changed BREW v3.1.4 to v2.0.1, it's the same. Also I tried some handsets in simulator, it's alwayse the same.
Before i add HTTPS to my app, it worked fine!!

Did i miss something?
Pls point my err, or give me some advice!

Thanks in advanced!!!

Did you ever get an answer to this question? I'm experiencing the same problem.

Did you ever get an answer to this question? I'm experiencing the same problem.