Lines Matching refs:Fprintf
364 if _, err := fmt.Fprintf(out, "%s\t\t%d\n", obj.name, nid); err != nil {
385 fmt.Fprintf(&b, `/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com)
475 fmt.Fprintf(&b, "#define SN_%s \"%s\"\n", obj.name, obj.shortName)
478 fmt.Fprintf(&b, "#define LN_%s \"%s\"\n", obj.name, obj.longName)
480 fmt.Fprintf(&b, "#define NID_%s %d\n", obj.name, nid)
497 fmt.Fprintf(&b, "#define OBJ_%s %s\n", obj.name, oidStr)
500 fmt.Fprintf(&b, "\n")
503 fmt.Fprintf(&b, `
538 fmt.Fprintf(&b, `/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com)
599 fmt.Fprintf(&b, "#define NUM_NID %d\n", len(objs.byNID))
602 fmt.Fprintf(&b, "\nstatic const uint8_t kObjectData[] = {\n")
613 fmt.Fprintf(&b, "/* NID_%s */\n", obj.name)
615 fmt.Fprintf(&b, "0x%02x, ", val)
617 fmt.Fprintf(&b, "\n")
619 fmt.Fprintf(&b, "};\n")
622 fmt.Fprintf(&b, "\nstatic const ASN1_OBJECT kObjects[NUM_NID] = {\n")
625 fmt.Fprintf(&b, "{NULL, NULL, NID_undef, 0, NULL, 0},\n")
629 fmt.Fprintf(&b, "{\"%s\", \"%s\", NID_%s, ", obj.shortName, obj.longName, obj.name)
631 fmt.Fprintf(&b, "%d, &kObjectData[%d], 0},\n", len(obj.encoded), offset)
633 fmt.Fprintf(&b, "0, NULL, 0},\n")
636 fmt.Fprintf(&b, "};\n")
648 fmt.Fprintf(&b, "\nstatic const unsigned kNIDsInShortNameOrder[] = {\n")
650 fmt.Fprintf(&b, "%d /* %s */,\n", nid, objs.byNID[nid].shortName)
652 fmt.Fprintf(&b, "};\n")
664 fmt.Fprintf(&b, "\nstatic const unsigned kNIDsInLongNameOrder[] = {\n")
666 fmt.Fprintf(&b, "%d /* %s */,\n", nid, objs.byNID[nid].longName)
668 fmt.Fprintf(&b, "};\n")
689 fmt.Fprintf(&b, "\nstatic const unsigned kNIDsInOIDOrder[] = {\n")
692 fmt.Fprintf(&b, "%d /* ", nid)
695 fmt.Fprintf(&b, ".")
697 fmt.Fprintf(&b, "%d", c)
699 fmt.Fprintf(&b, " (OBJ_%s) */,\n", obj.name)
701 fmt.Fprintf(&b, "};\n")
714 fmt.Fprintf(os.Stderr, "Error reading objects: %s\n", err)
719 fmt.Fprintf(os.Stderr, "Error writing numbers: %s\n", err)
724 fmt.Fprintf(os.Stderr, "Error writing header: %s\n", err)
729 fmt.Fprintf(os.Stderr, "Error writing data: %s\n", err)