35 lines
605 B
Protocol Buffer
35 lines
605 B
Protocol Buffer
syntax = "proto3";
|
|
package WACert;
|
|
option go_package = "go.mau.fi/whatsmeow/binary/armadillo/waCert";
|
|
|
|
message NoiseCertificate {
|
|
message Details {
|
|
uint32 serial = 1;
|
|
string issuer = 2;
|
|
uint64 expires = 3;
|
|
string subject = 4;
|
|
bytes key = 5;
|
|
}
|
|
|
|
bytes details = 1;
|
|
bytes signature = 2;
|
|
}
|
|
|
|
message CertChain {
|
|
message NoiseCertificate {
|
|
message Details {
|
|
uint32 serial = 1;
|
|
uint32 issuerSerial = 2;
|
|
bytes key = 3;
|
|
uint64 notBefore = 4;
|
|
uint64 notAfter = 5;
|
|
}
|
|
|
|
bytes details = 1;
|
|
bytes signature = 2;
|
|
}
|
|
|
|
NoiseCertificate leaf = 1;
|
|
NoiseCertificate intermediate = 2;
|
|
}
|