Roxen.git / server / config_actions / make_csr.pike

version» Context lines:

Roxen.git/server/config_actions/make_csr.pike:1:   /* -  * $Id: make_csr.pike,v 1.10 1999/04/24 17:55:37 mast Exp $ +  * $Id: make_csr.pike,v 1.11 1999/05/13 23:15:26 mast Exp $    */      inherit "wizard";      import Standards.PKCS;   #if constant(Standards.ASN1.Types) //0.6 feature   import Standards.ASN1.Types;   #else   import Standards.ASN1.Encode;   #endif /* constant(Standards.ASN1.Types) */
Roxen.git/server/config_actions/make_csr.pike:212:    {    if (id->variables[attr])    {    array a = trim->split(id->variables[attr]);    if (a)    attrs[attr] = a[0];    }    }       array name = ({ }); -  foreach( ({ "countryName", "stateOrProvinceName", +  if (attrs->countryName) +  name += ({(["countryName": asn1_printable_string (attrs->countryName)])}); +  foreach( ({ "stateOrProvinceName",    "localityName", "organizationName",    "organizationUnitName", "commonName" }), attr)    {    if (attrs[attr]) -  name += ({ ([ attr : asn1_printable_string(attrs[attr]) ]) }); +  name += ({ ([ attr : asn1_T61_string(attrs[attr]) ]) });    }       mapping csr_attrs = ([]);    foreach( ({ "challengePassword" }), attr)    {    if (attrs[attr])    csr_attrs[attr] = ({ asn1_printable_string(attrs[attr]) });    }       mapping cert_attrs = ([ ]);