Lines Matching refs:cn_size
33 u8 cn_size; /* Size of commonName (CN) */ member
290 ctx->cn_size = vlen; in x509_extract_name_segment()
323 if (!ctx->cn_size && !ctx->o_size && !ctx->email_size) { in x509_fabricate_name()
331 if (ctx->cn_size && ctx->o_size) { in x509_fabricate_name()
335 namesize = ctx->cn_size; in x509_fabricate_name()
337 if (ctx->cn_size >= ctx->o_size && in x509_fabricate_name()
341 if (ctx->cn_size >= 7 && in x509_fabricate_name()
346 buffer = kmalloc(ctx->o_size + 2 + ctx->cn_size + 1, in x509_fabricate_name()
356 data + ctx->cn_offset, ctx->cn_size); in x509_fabricate_name()
357 buffer[ctx->o_size + 2 + ctx->cn_size] = 0; in x509_fabricate_name()
360 } else if (ctx->cn_size) { in x509_fabricate_name()
361 namesize = ctx->cn_size; in x509_fabricate_name()
380 ctx->cn_size = 0; in x509_fabricate_name()