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

Unified Diff: ppapi/c/private/ppb_flash_tcp_socket.h

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/c/private/ppb_flash_tcp_socket.h
diff --git a/ppapi/c/private/ppb_flash_tcp_socket.h b/ppapi/c/private/ppb_flash_tcp_socket.h
index ee1d620dbcbb6fd2d78486e7b82961dfd8dee756..c80cdb0aaa9445a37d379b727e158424e124c651 100644
--- a/ppapi/c/private/ppb_flash_tcp_socket.h
+++ b/ppapi/c/private/ppb_flash_tcp_socket.h
@@ -3,7 +3,7 @@
* found in the LICENSE file.
*/
-/* From private/ppb_flash_tcp_socket.idl modified Thu Nov 10 10:21:43 2011. */
+/* From private/ppb_flash_tcp_socket.idl modified Thu Feb 16 10:37:34 2012. */
#ifndef PPAPI_C_PRIVATE_PPB_FLASH_TCP_SOCKET_H_
#define PPAPI_C_PRIVATE_PPB_FLASH_TCP_SOCKET_H_
@@ -88,6 +88,19 @@ struct PPB_Flash_TCPSocket_0_2 {
uint16_t server_port,
struct 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)(PP_Resource tcp_socket);
+ /**
+ * Add a trusted/untrusted root 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 (*AddRootCertificates)(PP_Resource certificate, 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

Powered by Google App Engine
This is Rietveld 408576698