You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
693 B
28 lines
693 B
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR) |
|
#pragma warning disable |
|
using System.IO; |
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Bcpg |
|
{ |
|
/// <remarks>Basic type for a marker packet.</remarks> |
|
public class MarkerPacket |
|
: ContainedPacket |
|
{ |
|
// "PGP" |
|
byte[] marker = { (byte)0x50, (byte)0x47, (byte)0x50 }; |
|
|
|
public MarkerPacket( |
|
BcpgInputStream bcpgIn) |
|
{ |
|
bcpgIn.ReadFully(marker); |
|
} |
|
|
|
public override void Encode( |
|
BcpgOutputStream bcpgOut) |
|
{ |
|
bcpgOut.WritePacket(PacketTag.Marker, marker, true); |
|
} |
|
} |
|
} |
|
#pragma warning restore |
|
#endif
|
|
|