summaryrefslogtreecommitdiffstats
path: root/net/quic/quic_framer.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/quic/quic_framer.h')
-rw-r--r--net/quic/quic_framer.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/net/quic/quic_framer.h b/net/quic/quic_framer.h
index 26e6995..0bc3299 100644
--- a/net/quic/quic_framer.h
+++ b/net/quic/quic_framer.h
@@ -332,14 +332,13 @@ class NET_EXPORT_PRIVATE QuicFramer {
// takes ownership of |encrypter|.
void SetEncrypter(EncryptionLevel level, QuicEncrypter* encrypter);
- // Returns a new encrypted packet, owned by the caller.
- // Encrypts into |buffer| if |buffer_len| is long enough, and otherwise
- // constructs a new buffer owned by the EncryptedPacket.
- QuicEncryptedPacket* EncryptPayload(EncryptionLevel level,
- QuicPacketNumber packet_number,
- const QuicPacket& packet,
- char* buffer,
- size_t buffer_len);
+ // Returns the length of the data encrypted into |buffer| if |buffer_len| is
+ // long enough, and otherwise 0.
+ size_t EncryptPayload(EncryptionLevel level,
+ QuicPacketNumber packet_number,
+ const QuicPacket& packet,
+ char* buffer,
+ size_t buffer_len);
// Returns the maximum length of plaintext that can be encrypted
// to ciphertext no larger than |ciphertext_size|.