| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 1 | /*- |
| 2 | * Copyright 2014 Square Inc. |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | package jose |
| 18 | |
| 19 | import ( |
| Cedric Staub | 92a7aaa | 2016-02-14 23:34:44 | [diff] [blame] | 20 | "encoding/base64" |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 21 | "fmt" |
| 22 | "strings" |
| Cedric Staub | 468cf01 | 2018-07-25 18:14:58 | [diff] [blame] | 23 | |
| 24 | "gopkg.in/square/go-jose.v2/json" |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 25 | ) |
| 26 | |
| Cedric Staub | d94ed21 | 2016-02-15 01:18:38 | [diff] [blame] | 27 | // rawJSONWebEncryption represents a raw JWE JSON object. Used for parsing/serializing. |
| 28 | type rawJSONWebEncryption struct { |
| Cedric Staub | 313a261 | 2014-12-23 23:16:09 | [diff] [blame] | 29 | Protected *byteBuffer `json:"protected,omitempty"` |
| 30 | Unprotected *rawHeader `json:"unprotected,omitempty"` |
| 31 | Header *rawHeader `json:"header,omitempty"` |
| Cedric Staub | 00b7159 | 2014-12-23 20:50:01 | [diff] [blame] | 32 | Recipients []rawRecipientInfo `json:"recipients,omitempty"` |
| Cedric Staub | 313a261 | 2014-12-23 23:16:09 | [diff] [blame] | 33 | Aad *byteBuffer `json:"aad,omitempty"` |
| 34 | EncryptedKey *byteBuffer `json:"encrypted_key,omitempty"` |
| 35 | Iv *byteBuffer `json:"iv,omitempty"` |
| 36 | Ciphertext *byteBuffer `json:"ciphertext,omitempty"` |
| 37 | Tag *byteBuffer `json:"tag,omitempty"` |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 38 | } |
| 39 | |
| Cedric Staub | 313a261 | 2014-12-23 23:16:09 | [diff] [blame] | 40 | // rawRecipientInfo represents a raw JWE Per-Recipient header JSON object. Used for parsing/serializing. |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 41 | type rawRecipientInfo struct { |
| Cedric Staub | 313a261 | 2014-12-23 23:16:09 | [diff] [blame] | 42 | Header *rawHeader `json:"header,omitempty"` |
| 43 | EncryptedKey string `json:"encrypted_key,omitempty"` |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 44 | } |
| 45 | |
| Cedric Staub | d94ed21 | 2016-02-15 01:18:38 | [diff] [blame] | 46 | // JSONWebEncryption represents an encrypted JWE object after parsing. |
| 47 | type JSONWebEncryption struct { |
| 48 | Header Header |
| Cedric Staub | 313a261 | 2014-12-23 23:16:09 | [diff] [blame] | 49 | protected, unprotected *rawHeader |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 50 | recipients []recipientInfo |
| 51 | aad, iv, ciphertext, tag []byte |
| Cedric Staub | d94ed21 | 2016-02-15 01:18:38 | [diff] [blame] | 52 | original *rawJSONWebEncryption |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 53 | } |
| 54 | |
| Cedric Staub | 313a261 | 2014-12-23 23:16:09 | [diff] [blame] | 55 | // recipientInfo represents a raw JWE Per-Recipient header JSON object after parsing. |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 56 | type recipientInfo struct { |
| Cedric Staub | 313a261 | 2014-12-23 23:16:09 | [diff] [blame] | 57 | header *rawHeader |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 58 | encryptedKey []byte |
| 59 | } |
| 60 | |
| 61 | // GetAuthData retrieves the (optional) authenticated data attached to the object. |
| Cedric Staub | d94ed21 | 2016-02-15 01:18:38 | [diff] [blame] | 62 | func (obj JSONWebEncryption) GetAuthData() []byte { |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 63 | if obj.aad != nil { |
| 64 | out := make([]byte, len(obj.aad)) |
| 65 | copy(out, obj.aad) |
| 66 | return out |
| 67 | } |
| 68 | |
| 69 | return nil |
| 70 | } |
| 71 | |
| Cedric Staub | 00b7159 | 2014-12-23 20:50:01 | [diff] [blame] | 72 | // Get the merged header values |
| Cedric Staub | d94ed21 | 2016-02-15 01:18:38 | [diff] [blame] | 73 | func (obj JSONWebEncryption) mergedHeaders(recipient *recipientInfo) rawHeader { |
| Cedric Staub | 313a261 | 2014-12-23 23:16:09 | [diff] [blame] | 74 | out := rawHeader{} |
| Richard Barnes | 4b2d821 | 2015-10-08 19:47:53 | [diff] [blame] | 75 | out.merge(obj.protected) |
| 76 | out.merge(obj.unprotected) |
| Cedric Staub | 00b7159 | 2014-12-23 20:50:01 | [diff] [blame] | 77 | |
| 78 | if recipient != nil { |
| Richard Barnes | 4b2d821 | 2015-10-08 19:47:53 | [diff] [blame] | 79 | out.merge(recipient.header) |
| Cedric Staub | 00b7159 | 2014-12-23 20:50:01 | [diff] [blame] | 80 | } |
| 81 | |
| 82 | return out |
| 83 | } |
| 84 | |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 85 | // Get the additional authenticated data from a JWE object. |
| Cedric Staub | d94ed21 | 2016-02-15 01:18:38 | [diff] [blame] | 86 | func (obj JSONWebEncryption) computeAuthData() []byte { |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 87 | var protected string |
| 88 | |
| Cedric Staub | 8272fb4 | 2018-06-26 18:53:36 | [diff] [blame] | 89 | if obj.original != nil && obj.original.Protected != nil { |
| Cedric Staub | 00b7159 | 2014-12-23 20:50:01 | [diff] [blame] | 90 | protected = obj.original.Protected.base64() |
| Cedric Staub | 8272fb4 | 2018-06-26 18:53:36 | [diff] [blame] | 91 | } else if obj.protected != nil { |
| Cedric Staub | 92a7aaa | 2016-02-14 23:34:44 | [diff] [blame] | 92 | protected = base64.RawURLEncoding.EncodeToString(mustSerializeJSON((obj.protected))) |
| Cedric Staub | 8272fb4 | 2018-06-26 18:53:36 | [diff] [blame] | 93 | } else { |
| 94 | protected = "" |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 95 | } |
| 96 | |
| 97 | output := []byte(protected) |
| 98 | if obj.aad != nil { |
| 99 | output = append(output, '.') |
| Cedric Staub | 92a7aaa | 2016-02-14 23:34:44 | [diff] [blame] | 100 | output = append(output, []byte(base64.RawURLEncoding.EncodeToString(obj.aad))...) |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 101 | } |
| 102 | |
| 103 | return output |
| 104 | } |
| 105 | |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 106 | // ParseEncrypted parses an encrypted message in compact or full serialization format. |
| Cedric Staub | d94ed21 | 2016-02-15 01:18:38 | [diff] [blame] | 107 | func ParseEncrypted(input string) (*JSONWebEncryption, error) { |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 108 | input = stripWhitespace(input) |
| 109 | if strings.HasPrefix(input, "{") { |
| 110 | return parseEncryptedFull(input) |
| 111 | } |
| 112 | |
| 113 | return parseEncryptedCompact(input) |
| 114 | } |
| 115 | |
| 116 | // parseEncryptedFull parses a message in compact format. |
| Cedric Staub | d94ed21 | 2016-02-15 01:18:38 | [diff] [blame] | 117 | func parseEncryptedFull(input string) (*JSONWebEncryption, error) { |
| 118 | var parsed rawJSONWebEncryption |
| Cedric Staub | 1f36a88 | 2016-06-01 23:11:57 | [diff] [blame] | 119 | err := json.Unmarshal([]byte(input), &parsed) |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 120 | if err != nil { |
| 121 | return nil, err |
| 122 | } |
| 123 | |
| Cedric Staub | 06a2537 | 2015-03-04 06:39:47 | [diff] [blame] | 124 | return parsed.sanitized() |
| 125 | } |
| 126 | |
| Cedric Staub | 9397230 | 2015-03-26 18:55:42 | [diff] [blame] | 127 | // sanitized produces a cleaned-up JWE object from the raw JSON. |
| Cedric Staub | d94ed21 | 2016-02-15 01:18:38 | [diff] [blame] | 128 | func (parsed *rawJSONWebEncryption) sanitized() (*JSONWebEncryption, error) { |
| 129 | obj := &JSONWebEncryption{ |
| Cedric Staub | 06a2537 | 2015-03-04 06:39:47 | [diff] [blame] | 130 | original: parsed, |
| 131 | unprotected: parsed.Unprotected, |
| 132 | } |
| 133 | |
| Richard Barnes | 4b2d821 | 2015-10-08 19:47:53 | [diff] [blame] | 134 | // Check that there is not a nonce in the unprotected headers |
| Hugo Landau | 3013e33 | 2017-02-08 18:24:40 | [diff] [blame] | 135 | if parsed.Unprotected != nil { |
| 136 | if nonce := parsed.Unprotected.getNonce(); nonce != "" { |
| 137 | return nil, ErrUnprotectedNonce |
| 138 | } |
| 139 | } |
| 140 | if parsed.Header != nil { |
| 141 | if nonce := parsed.Header.getNonce(); nonce != "" { |
| 142 | return nil, ErrUnprotectedNonce |
| 143 | } |
| Richard Barnes | 4b2d821 | 2015-10-08 19:47:53 | [diff] [blame] | 144 | } |
| 145 | |
| Cedric Staub | 00b7159 | 2014-12-23 20:50:01 | [diff] [blame] | 146 | if parsed.Protected != nil && len(parsed.Protected.bytes()) > 0 { |
| Cedric Staub | 1f36a88 | 2016-06-01 23:11:57 | [diff] [blame] | 147 | err := json.Unmarshal(parsed.Protected.bytes(), &obj.protected) |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 148 | if err != nil { |
| Cedric Staub | 00b7159 | 2014-12-23 20:50:01 | [diff] [blame] | 149 | return nil, fmt.Errorf("square/go-jose: invalid protected header: %s, %s", err, parsed.Protected.base64()) |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 150 | } |
| 151 | } |
| 152 | |
| Cedric Staub | 29c6855 | 2015-11-17 01:04:16 | [diff] [blame] | 153 | // Note: this must be called _after_ we parse the protected header, |
| 154 | // otherwise fields from the protected header will not get picked up. |
| Hugo Landau | 3013e33 | 2017-02-08 18:24:40 | [diff] [blame] | 155 | var err error |
| 156 | mergedHeaders := obj.mergedHeaders(nil) |
| 157 | obj.Header, err = mergedHeaders.sanitized() |
| 158 | if err != nil { |
| 159 | return nil, fmt.Errorf("square/go-jose: cannot sanitize merged headers: %v (%v)", err, mergedHeaders) |
| 160 | } |
| Cedric Staub | 29c6855 | 2015-11-17 01:04:16 | [diff] [blame] | 161 | |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 162 | if len(parsed.Recipients) == 0 { |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 163 | obj.recipients = []recipientInfo{ |
| Cedric Staub | 3e5b050 | 2016-02-15 01:06:30 | [diff] [blame] | 164 | { |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 165 | header: parsed.Header, |
| Cedric Staub | 00b7159 | 2014-12-23 20:50:01 | [diff] [blame] | 166 | encryptedKey: parsed.EncryptedKey.bytes(), |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 167 | }, |
| 168 | } |
| 169 | } else { |
| 170 | obj.recipients = make([]recipientInfo, len(parsed.Recipients)) |
| 171 | for r := range parsed.Recipients { |
| Cedric Staub | 92a7aaa | 2016-02-14 23:34:44 | [diff] [blame] | 172 | encryptedKey, err := base64.RawURLEncoding.DecodeString(parsed.Recipients[r].EncryptedKey) |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 173 | if err != nil { |
| 174 | return nil, err |
| 175 | } |
| 176 | |
| Richard Barnes | 4b2d821 | 2015-10-08 19:47:53 | [diff] [blame] | 177 | // Check that there is not a nonce in the unprotected header |
| Hugo Landau | 3013e33 | 2017-02-08 18:24:40 | [diff] [blame] | 178 | if parsed.Recipients[r].Header != nil && parsed.Recipients[r].Header.getNonce() != "" { |
| Richard Barnes | abb992d | 2015-10-08 21:00:24 | [diff] [blame] | 179 | return nil, ErrUnprotectedNonce |
| Richard Barnes | 4b2d821 | 2015-10-08 19:47:53 | [diff] [blame] | 180 | } |
| 181 | |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 182 | obj.recipients[r].header = parsed.Recipients[r].Header |
| 183 | obj.recipients[r].encryptedKey = encryptedKey |
| 184 | } |
| 185 | } |
| 186 | |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 187 | for _, recipient := range obj.recipients { |
| Cedric Staub | 00b7159 | 2014-12-23 20:50:01 | [diff] [blame] | 188 | headers := obj.mergedHeaders(&recipient) |
| Hugo Landau | 3013e33 | 2017-02-08 18:24:40 | [diff] [blame] | 189 | if headers.getAlgorithm() == "" || headers.getEncryption() == "" { |
| Cedric Staub | 00b7159 | 2014-12-23 20:50:01 | [diff] [blame] | 190 | return nil, fmt.Errorf("square/go-jose: message is missing alg/enc headers") |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 191 | } |
| 192 | } |
| 193 | |
| Cedric Staub | 00b7159 | 2014-12-23 20:50:01 | [diff] [blame] | 194 | obj.iv = parsed.Iv.bytes() |
| 195 | obj.ciphertext = parsed.Ciphertext.bytes() |
| 196 | obj.tag = parsed.Tag.bytes() |
| 197 | obj.aad = parsed.Aad.bytes() |
| 198 | |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 199 | return obj, nil |
| 200 | } |
| 201 | |
| 202 | // parseEncryptedCompact parses a message in compact format. |
| Cedric Staub | d94ed21 | 2016-02-15 01:18:38 | [diff] [blame] | 203 | func parseEncryptedCompact(input string) (*JSONWebEncryption, error) { |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 204 | parts := strings.Split(input, ".") |
| 205 | if len(parts) != 5 { |
| 206 | return nil, fmt.Errorf("square/go-jose: compact JWE format must have five parts") |
| 207 | } |
| 208 | |
| Cedric Staub | 92a7aaa | 2016-02-14 23:34:44 | [diff] [blame] | 209 | rawProtected, err := base64.RawURLEncoding.DecodeString(parts[0]) |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 210 | if err != nil { |
| 211 | return nil, err |
| 212 | } |
| 213 | |
| Cedric Staub | 92a7aaa | 2016-02-14 23:34:44 | [diff] [blame] | 214 | encryptedKey, err := base64.RawURLEncoding.DecodeString(parts[1]) |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 215 | if err != nil { |
| 216 | return nil, err |
| 217 | } |
| 218 | |
| Cedric Staub | 92a7aaa | 2016-02-14 23:34:44 | [diff] [blame] | 219 | iv, err := base64.RawURLEncoding.DecodeString(parts[2]) |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 220 | if err != nil { |
| 221 | return nil, err |
| 222 | } |
| 223 | |
| Cedric Staub | 92a7aaa | 2016-02-14 23:34:44 | [diff] [blame] | 224 | ciphertext, err := base64.RawURLEncoding.DecodeString(parts[3]) |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 225 | if err != nil { |
| 226 | return nil, err |
| 227 | } |
| 228 | |
| Cedric Staub | 92a7aaa | 2016-02-14 23:34:44 | [diff] [blame] | 229 | tag, err := base64.RawURLEncoding.DecodeString(parts[4]) |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 230 | if err != nil { |
| 231 | return nil, err |
| 232 | } |
| 233 | |
| Cedric Staub | d94ed21 | 2016-02-15 01:18:38 | [diff] [blame] | 234 | raw := &rawJSONWebEncryption{ |
| Cedric Staub | 06a2537 | 2015-03-04 06:39:47 | [diff] [blame] | 235 | Protected: newBuffer(rawProtected), |
| 236 | EncryptedKey: newBuffer(encryptedKey), |
| 237 | Iv: newBuffer(iv), |
| 238 | Ciphertext: newBuffer(ciphertext), |
| 239 | Tag: newBuffer(tag), |
| 240 | } |
| 241 | |
| 242 | return raw.sanitized() |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 243 | } |
| 244 | |
| 245 | // CompactSerialize serializes an object using the compact serialization format. |
| Cedric Staub | d94ed21 | 2016-02-15 01:18:38 | [diff] [blame] | 246 | func (obj JSONWebEncryption) CompactSerialize() (string, error) { |
| Richard Barnes | 9af7440 | 2015-11-17 18:57:04 | [diff] [blame] | 247 | if len(obj.recipients) != 1 || obj.unprotected != nil || |
| 248 | obj.protected == nil || obj.recipients[0].header != nil { |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 249 | return "", ErrNotSupported |
| 250 | } |
| 251 | |
| Cedric Staub | 569deb3 | 2014-12-23 01:06:00 | [diff] [blame] | 252 | serializedProtected := mustSerializeJSON(obj.protected) |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 253 | |
| 254 | return fmt.Sprintf( |
| 255 | "%s.%s.%s.%s.%s", |
| Cedric Staub | 92a7aaa | 2016-02-14 23:34:44 | [diff] [blame] | 256 | base64.RawURLEncoding.EncodeToString(serializedProtected), |
| 257 | base64.RawURLEncoding.EncodeToString(obj.recipients[0].encryptedKey), |
| 258 | base64.RawURLEncoding.EncodeToString(obj.iv), |
| 259 | base64.RawURLEncoding.EncodeToString(obj.ciphertext), |
| 260 | base64.RawURLEncoding.EncodeToString(obj.tag)), nil |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 261 | } |
| 262 | |
| 263 | // FullSerialize serializes an object using the full JSON serialization format. |
| Cedric Staub | d94ed21 | 2016-02-15 01:18:38 | [diff] [blame] | 264 | func (obj JSONWebEncryption) FullSerialize() string { |
| 265 | raw := rawJSONWebEncryption{ |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 266 | Unprotected: obj.unprotected, |
| Cedric Staub | 00b7159 | 2014-12-23 20:50:01 | [diff] [blame] | 267 | Iv: newBuffer(obj.iv), |
| 268 | Ciphertext: newBuffer(obj.ciphertext), |
| 269 | EncryptedKey: newBuffer(obj.recipients[0].encryptedKey), |
| 270 | Tag: newBuffer(obj.tag), |
| 271 | Aad: newBuffer(obj.aad), |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 272 | Recipients: []rawRecipientInfo{}, |
| 273 | } |
| 274 | |
| 275 | if len(obj.recipients) > 1 { |
| 276 | for _, recipient := range obj.recipients { |
| 277 | info := rawRecipientInfo{ |
| 278 | Header: recipient.header, |
| Cedric Staub | 92a7aaa | 2016-02-14 23:34:44 | [diff] [blame] | 279 | EncryptedKey: base64.RawURLEncoding.EncodeToString(recipient.encryptedKey), |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 280 | } |
| 281 | raw.Recipients = append(raw.Recipients, info) |
| 282 | } |
| 283 | } else { |
| 284 | // Use flattened serialization |
| 285 | raw.Header = obj.recipients[0].header |
| Cedric Staub | 00b7159 | 2014-12-23 20:50:01 | [diff] [blame] | 286 | raw.EncryptedKey = newBuffer(obj.recipients[0].encryptedKey) |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 287 | } |
| 288 | |
| Richard Barnes | 9af7440 | 2015-11-17 18:57:04 | [diff] [blame] | 289 | if obj.protected != nil { |
| 290 | raw.Protected = newBuffer(mustSerializeJSON(obj.protected)) |
| 291 | } |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 292 | |
| Cedric Staub | 569deb3 | 2014-12-23 01:06:00 | [diff] [blame] | 293 | return string(mustSerializeJSON(raw)) |
| Cedric Staub | 114bcf4 | 2014-12-19 06:59:30 | [diff] [blame] | 294 | } |