Dear all,<br><br>How to install a X509 certificate into the browser?<br><br>I had thought that <a class="el" href="file:///D:/src/microb/www/docs/eal/gweb_8h.html#7e47733defd6f89ae3c64a1c08ee1cd3">g_web_perform_crtificate_context_action</a>(web, ctx, <em>G_WEB_CERT_ACTION_INSTALL, cert</em>) will do the job.<br>
<br>But when I looked into the implimentation(g_mozilla_web_perform_crtificate_context_action), I found that nothing was done there.<br><br><i>static GWebCertificateReaction<br>g_mozilla_web_perform_crtificate_context_action (GMozillaWeb *self,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GObject *context,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GWebCertificateAction action,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GObject *cert)<br>{<br>
&nbsp;&nbsp;&nbsp; TRACE_LOG();<br>&nbsp;&nbsp;&nbsp; if (action == G_WEB_CERT_ACTION_ACCEPT) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GMozillaWebCertContext* ctx = (GMozillaWebCertContext*) context;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (cert &amp;&amp; ctx-&gt;mozcert != cert) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return G_WEB_CERT_REACTION_CLOSE;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; } else if (action == G_WEB_CERT_ACTION_CANCEL) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return G_WEB_CERT_REACTION_CLOSE;<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; return G_WEB_CERT_REACTION_NOTHING;<br>}</i><br><br>Any clue or suggestion will be greatly appreciated.<br>
<br>Best Regards,<br>Zhihai Wang<br>