...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package vsix
18
19 const (
20 contentTypesPath = "[Content_Types].xml"
21 rootRelsPath = "_rels"
22 digSigPath = "package/services/digital-signature"
23 originPath = digSigPath + "/origin.psdor"
24 xmlSigPath = digSigPath + "/xml-signature"
25 xmlCertPath = digSigPath + "/certificate"
26
27 nsDigSig = "http://schemas.openxmlformats.org/package/2006/digital-signature"
28 sigOriginType = "http://schemas.openxmlformats.org/package/2006/relationships/digital-signature/origin"
29 sigType = "http://schemas.openxmlformats.org/package/2006/relationships/digital-signature/signature"
30 certType = "http://schemas.openxmlformats.org/package/2006/relationships/digital-signature/certificate"
31
32 defaultContentType = "application/octet-stream"
33 tsFormatXML = "YYYY-MM-DDThh:mm:ss.sTZD"
34 tsFormatGo = "2006-01-02T15:04:05.0-07:00"
35 )
36
37 var contentTypes = map[string]string{
38 "cer": "application/vnd.openxmlformats-package.digital-signature-certificate",
39 "psdor": "application/vnd.openxmlformats-package.digital-signature-origin",
40 "psdsxs": "application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml",
41 "rels": "application/vnd.openxmlformats-package.relationships+xml",
42 }
43
View as plain text