summaryrefslogtreecommitdiff
path: root/src/pkg/asn1
AgeCommit message (Collapse)AuthorFilesLines
2010-06-20reflect: add Kind, remove Int8Type, Int8Value, etc.Russ Cox3-25/+22
update other code to match. R=r CC=golang-dev http://codereview.appspot.com/1680044
2010-06-09asn1: allow '*' in PrintableString.Adam Langley2-1/+6
Although technically incorrect, we want this in order to parse X.509 certificates where a wildcard hostname ("*.example.com") has been put into a PrintableString. Fixes issue 850. R=rsc CC=golang-dev http://codereview.appspot.com/1615043
2010-03-04gofmt: modified algorithm for alignment of multi-line composite/list entriesRobert Griesemer1-2/+2
- only manual changes are in src/pkg/go/printer/nodes.go - use a heuristic to determine "outliers" such that not entire composites are forced to align with them - improves several places that were not unligned before due too simple heuristic - unalignes some cases that contain "outliers" - gofmt -w src misc Fixes issue 644. R=rsc, r CC=golang-dev http://codereview.appspot.com/241041
2010-03-02gofmt: experiment: align values in map composites where possibleRobert Griesemer1-3/+3
- gofmt -w src misc - looking for feedback R=rsc, r CC=golang-dev http://codereview.appspot.com/223076
2010-02-25use []byte("abc") in place of []byte{'a', 'b', 'c'}Russ Cox1-1/+1
R=gri CC=golang-dev http://codereview.appspot.com/223059
2010-02-25strings: delete Runes, BytesRuss Cox2-5/+3
gofmt -w -r 'strings.Bytes(a) -> []byte(a)' src/cmd src/pkg test/bench gofmt -w -r 'strings.Runes(a) -> []int(a)' src/cmd src/pkg test/bench delete unused imports R=r CC=golang-dev http://codereview.appspot.com/224062
2010-02-05asn1: Fixes and additions to marshallingAdam Langley5-45/+159
Marshalling: * Fixes several silly bugs. * Support the RawContents type. * Support the RawValue type. * Recurse into nested interface{}. Both directions: * Better handling of SETs. You can now tag an element in a structure with "set" to get the correct tag for serialisation. * For types that aren't in a structure, you can now name them with "SET" on the end. * SETs are no longer implicitly treated as SEQUENCEs. R=rsc CC=golang-dev http://codereview.appspot.com/201049
2010-01-11asn1: fix marshaling of structures with >1 elements.Adam Langley2-2/+13
Fixes issue 515. R=rsc CC=golang-dev http://codereview.appspot.com/184079
2010-01-11asn1: fix parsing of elements after a string in a structure.Adam Langley2-9/+8
Fixes issue 516. R=rsc CC=golang-dev, golang-dev http://codereview.appspot.com/184080
2009-12-15 1) Change default gofmt default settings forRobert Griesemer5-454/+454
parsing and printing to new syntax. Use -oldparser to parse the old syntax, use -oldprinter to print the old syntax. 2) Change default gofmt formatting settings to use tabs for indentation only and to use spaces for alignment. This will make the code alignment insensitive to an editor's tabwidth. Use -spaces=false to use tabs for alignment. 3) Manually changed src/exp/parser/parser_test.go so that it doesn't try to parse the parser's source files using the old syntax (they have new syntax now). 4) gofmt -w src misc test/bench 1st set of files. R=rsc CC=agl, golang-dev, iant, ken2, r http://codereview.appspot.com/180047
2009-11-23go: makes it build for the case $GOROOT has whitespacesSergio Luis O. B. Correia1-2/+2
the bash scripts and makefiles for building go didn't take into account the fact $GOROOT / $GOBIN could both be directories containing whitespaces, and was not possible to build it in such a situation. this commit adjusts the various makefiles/scripts to make it aware of that possibility, and now it builds successfully when using a path with whitespaces as well. Fixes issue 115. R=rsc, dsymonds1 http://codereview.appspot.com/157067 Committer: Russ Cox <rsc@golang.org>
2009-11-20gofmt -r 'α[β:len(α)] -> α[β:]' -w src/cmd src/pkgRuss Cox2-6/+6
R=r, gri CC=golang-dev http://codereview.appspot.com/156115
2009-11-18asn1: add support for RawContentAdam Langley2-1/+46
R=rsc CC=golang-dev http://codereview.appspot.com/157056
2009-11-17asn1:Adam Langley6-160/+704
* add Marshal * add BitString.RightAlign * change to using a *time.Time (from time.Time) since that's what the time package uses. * return the unparsed data from Unmarshal. R=rsc CC=golang-dev http://codereview.appspot.com/156047
2009-11-10minor adjustments to package comments for better synopsis.Robert Griesemer1-2/+2
R=rsc CC=r http://go/go-review/1026038
2009-11-09- replaced gofmt expression formatting algorithm withRobert Griesemer1-16/+16
rsc's algorithm - applied gofmt -w misc src - partial CL (remaining files in other CLs) R=rsc, r http://go/go-review/1024040
2009-11-09remove semis after statements in one-statement statement listsRobert Griesemer2-90/+90
R=rsc, r http://go/go-review/1025029
2009-11-06Typo fixes.David Symonds1-1/+1
R=rsc CC=go-dev http://go/go-review/1026014 Committer: Russ Cox <rsc@golang.org>
2009-11-06- fine-tuning of one-line func heuristic (nodes.go)Robert Griesemer2-21/+7
- enabled for function declarations (not just function literals) - applied gofmt -w $GOROOT/src (look for instance at src/pkg/debug/elf/elf.go) R=r, rsc CC=go-dev http://go/go-review/1026006
2009-11-04gofmt-ify asn1Robert Griesemer2-23/+23
R=rsc http://go/go-review/1018047
2009-10-13Add ASN.1 parser.Adam Langley3-0/+1457
R=rsc APPROVED=rsc DELTA=1459 (1459 added, 0 deleted, 0 changed) OCL=35389 CL=35681