Lines Matching defs:gen
686 static bool PrintGeneralName(const BIOPointer& out, const GENERAL_NAME* gen) {
687 if (gen->type == GEN_DNS) {
688 ASN1_IA5STRING* name = gen->d.dNSName;
694 } else if (gen->type == GEN_EMAIL) {
695 ASN1_IA5STRING* name = gen->d.rfc822Name;
698 } else if (gen->type == GEN_URI) {
699 ASN1_IA5STRING* name = gen->d.uniformResourceIdentifier;
706 } else if (gen->type == GEN_DIRNAME) {
723 gen->d.dirn,
733 } else if (gen->type == GEN_IPADD) {
735 const ASN1_OCTET_STRING* ip = gen->d.ip;
751 } else if (gen->type == GEN_RID) {
755 OBJ_obj2txt(oline, sizeof(oline), gen->d.rid, true);
757 } else if (gen->type == GEN_OTHERNAME) {
767 int nid = OBJ_obj2nid(gen->d.otherName->type_id);
787 int val_type = gen->d.otherName->value->type;
795 PrintUtf8AltName(out, gen->d.otherName->value->value.utf8string,
798 PrintLatin1AltName(out, gen->d.otherName->value->value.ia5string,
802 } else if (gen->type == GEN_X400) {
805 } else if (gen->type == GEN_EDIPARTY) {
828 GENERAL_NAME* gen = sk_GENERAL_NAME_value(names, i);
833 if (!(ok = PrintGeneralName(out, gen))) {