Lines Matching defs:rec
39 SSLEncodeChangeCipherSpec(SSLRecord *rec, SSLContext *ctx)
45 rec->contentType = SSL_RecordTypeChangeCipher;
47 rec->protocolVersion = ctx->negProtocolVersion;
48 rec->contents.length = 1;
49 if ((err = SSLAllocBuffer(&rec->contents, 1)))
51 rec->contents.data[0] = 1;
59 SSLProcessChangeCipherSpec(SSLRecord rec, SSLContext *ctx)
62 if (rec.contents.length != 1 || rec.contents.data[0] != 1)
69 (unsigned)rec.contents.length, (unsigned)rec.contents.data[0]);