Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Unified Diff: ppapi/api/private/ppb_flash_tcp_socket.idl

Issue 9405038: Add PPAPI interface for secure sockets in flash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ppapi/api/private/ppb_flash_tcp_socket.idl
diff --git a/ppapi/api/private/ppb_flash_tcp_socket.idl b/ppapi/api/private/ppb_flash_tcp_socket.idl
index 1ec9ec49a4224898150a8e0ddba0ad2e25b97084..de9f00e6b62f470a50272edc060111ba780f399e 100644
--- a/ppapi/api/private/ppb_flash_tcp_socket.idl
+++ b/ppapi/api/private/ppb_flash_tcp_socket.idl
@@ -77,6 +77,22 @@ interface PPB_Flash_TCPSocket {
[in] PP_CompletionCallback callback);
/**
+ * Returns the <code>PPB_Flash_X509Certificate</code> for a socket connection
+ * if an SSL connection has been established using <code>SSL_Handshake</code>.
+ * If no SSL connection has been established, a null resource is returned.
+ */
+ PP_Resource GetX509Certificate([in] PP_Resource tcp_socket);
+
+ /**
+ * Add a trusted/untrusted chain building certificate to be used for this
+ * connection. The <code>PP_Resource</code> must be a
+ * <code>PPB_Flash_X509Certificate<code>. <code>PP_TRUE</code> is returned
+ * upon success.
+ */
+ PP_Bool AddChainBuildingCertificate([in] PP_Resource certificate,
+ [in] PP_Bool is_trusted);
+
+ /**
* Reads data from the socket. The size of |buffer| must be at least as large
* as |bytes_to_read|. May perform a partial read. Returns the number of bytes
* read or an error code. If the return value is 0, then it indicates that
« no previous file with comments | « no previous file | ppapi/api/private/ppb_flash_x509_certificate.idl » ('j') | ppapi/api/private/ppb_flash_x509_certificate.idl » ('J')

Powered by Google App Engine
This is Rietveld 408576698