Bpoint1 with IX509Chain | developer.brewmp.com Bpoint1 with IX509Chain | developer.brewmp.com

Developer

Bpoint1 with IX509Chain

Forums:

I encounter such a problem when I code TLS with ISSL interface:

condition: 1. I want to get server cert, so I pass a non- NULL paramter for pCerts when I invoke API
void ISSL_NegotiateV
(
ISSL *pISSL,
SSLInfo *pinfo,
IX509Chain **pCerts,
AEECallback *pcb,
WebOpts *pOpts
)
2. I Register callback with WEBOPT_SSL_NEGOTIATE_HANDLER

but every time into the callback function ,the reference of IX509Chain changes.I don't know why? :confused:
when app exit, I must free every interface i create during this handshake,
First time, I don't release IX509Chain interfacee, because it is created by BREW internally, I will get bpont1
second time, I use IX509Chain_Release, the reference num is not zero(especially, num is different for every network ), so I still get Bpoint1.

any one who knows about this question, please tell me how to deal with it, thanks in advance!!