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

Unified Diff: ppapi/cpp/private/tcp_socket_private.h

Issue 9699100: Add functionality to pppapi TCPSocket to support secure sockets in flash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 8 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/cpp/private/tcp_socket_private.h
diff --git a/ppapi/cpp/private/tcp_socket_private.h b/ppapi/cpp/private/tcp_socket_private.h
index 839c7cfbfbee5129facb30006a48398d6aa2222b..0a429856efffd2251efe411ffe2d40b059dcc164 100644
--- a/ppapi/cpp/private/tcp_socket_private.h
+++ b/ppapi/cpp/private/tcp_socket_private.h
@@ -8,6 +8,7 @@
#include "ppapi/c/pp_stdint.h"
#include "ppapi/c/private/ppb_tcp_socket_private.h"
#include "ppapi/cpp/pass_ref.h"
+#include "ppapi/cpp/private/x509_certificate_private.h"
#include "ppapi/cpp/resource.h"
namespace pp {
@@ -34,6 +35,10 @@ class TCPSocketPrivate : public Resource {
int32_t SSLHandshake(const char* server_name,
uint16_t server_port,
const CompletionCallback& callback);
+ X509Certificate GetServerCertificate();
Ryan Sleevi 2012/04/06 00:37:49 bool GetServerCertificate(X509Certificate* cert);
yzshen1 2012/04/06 19:24:33 Actually, you should have 'Private' in the name of
raymes 2012/04/06 23:22:47 A copy to the out param would still have to happen
+ bool AddChainBuildingCertificate(const X509Certificate& cert,
+ bool trusted);
+
int32_t Read(char* buffer,
int32_t bytes_to_read,
const CompletionCallback& callback);

Powered by Google App Engine
This is Rietveld 408576698