pike.git / lib / modules / Standards.pmod / X509.pmod

version» Context lines:

pike.git/lib/modules/Standards.pmod/X509.pmod:420:    issuer_pos = 0;    if (subject_pos) subject_pos--;    if (extensions_pos) extensions_pos--;    return;    }    if (i->cls != 2) {    // Convert BitString to IssuerId.    i = IssuerId(i->value);    } else if (i->raw) {    // Convert Primitive to IssuerId. -  (i = IssuerId())->decode_primitive(a[i]->raw); +  (i = IssuerId())->decode_primitive(i->raw);    }    if (!issuer_pos) {    if (version < 2) version = 2;    issuer_pos = 7;    elements = elements[..6] + ({ i }) + elements[7..];    if (subject_pos) subject_pos++;    if (extensions_pos) extensions_pos++;    return;    }    elements[issuer_pos] = i;
pike.git/lib/modules/Standards.pmod/X509.pmod:453:    if (!s) {    if (!subject_pos) return;    elements = elements[..subject_pos -1] + elements[subject_pos+1..];    subject_pos = 0;    if (extensions_pos) extensions_pos--;    return;    }    if (s->cls != 2) {    // Convert BitString to SubjectId.    s = SubjectId()->decode_primitive(s->raw); -  } else if (i->raw) { +  } else if (s->raw) {    // Convert Primitive to SubjectId. -  (s = SubjectId())->decode_primitive(a[i]->raw); +  (s = SubjectId())->decode_primitive(s->raw);    }    if (!subject_pos) {    if (version < 2) version = 2;    subject_pos = (issuer_pos || 6) + 1;    elements = elements[..subject_pos-1] + ({ s }) +    elements[subject_pos..];    if (extensions_pos) extensions_pos++;    return;    }    elements[subject_pos] = s;