Lines Matching refs:sct
93 unsigned char *sct;
97 * inside "sct".
171 static void SCT_free(SCT *sct)
173 if (sct) {
174 if (sct->sct)
175 OPENSSL_free(sct->sct);
176 OPENSSL_free(sct);
190 SCT *sct;
217 sct = OPENSSL_malloc(sizeof(SCT));
218 if (!sct)
220 if (!sk_SCT_push(sk, sct)) {
221 OPENSSL_free(sct);
225 sct->sct = OPENSSL_malloc(sctlen);
226 if (!sct->sct)
228 memcpy(sct->sct, p, sctlen);
229 sct->sctlen = sctlen;
231 p2 = sct->sct;
233 sct->version = *p2++;
234 if (sct->version == 0) { /* SCT v1 */
247 sct->logid = p2;
248 sct->logidlen = 32;
251 n2l8(p2, sct->timestamp);
256 sct->ext = p2;
257 sct->extlen = fieldlen;
271 sct->hash_alg = *p2++;
272 sct->sig_alg = *p2++;
276 sct->sig = p2;
277 sct->siglen = fieldlen;
295 SCT *sct;
299 sct = sk_SCT_value(sct_list, i);
304 if (sct->version == 0) { /* SCT v1 */
308 BIO_hex_string(out, indent + 16, 16, sct->logid, sct->logidlen);
311 timestamp_print(out, sct->timestamp);
314 if (sct->extlen == 0)
317 BIO_hex_string(out, indent + 16, 16, sct->ext, sct->extlen);
320 tls12_signature_print(out, sct->hash_alg, sct->sig_alg);
322 BIO_hex_string(out, indent + 16, 16, sct->sig, sct->siglen);
326 BIO_hex_string(out, indent + 16, 16, sct->sct, sct->sctlen);