~nskaggs/+junk/xenial-test

« back to all changes in this revision

Viewing changes to src/github.com/Azure/azure-sdk-for-go/Godeps/_workspace/src/golang.org/x/crypto/pkcs12/errors.go

  • Committer: Nicholas Skaggs
  • Date: 2016-10-24 20:56:05 UTC
  • Revision ID: nicholas.skaggs@canonical.com-20161024205605-z8lta0uvuhtxwzwl
Initi with beta15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright 2015 The Go Authors. All rights reserved.
 
2
// Use of this source code is governed by a BSD-style
 
3
// license that can be found in the LICENSE file.
 
4
 
 
5
package pkcs12
 
6
 
 
7
import "errors"
 
8
 
 
9
var (
 
10
        // ErrDecryption represents a failure to decrypt the input.
 
11
        ErrDecryption = errors.New("pkcs12: decryption error, incorrect padding")
 
12
 
 
13
        // ErrIncorrectPassword is returned when an incorrect password is detected.
 
14
        // Usually, P12/PFX data is signed to be able to verify the password.
 
15
        ErrIncorrectPassword = errors.New("pkcs12: decryption password incorrect")
 
16
)
 
17
 
 
18
// NotImplementedError indicates that the input is not currently supported.
 
19
type NotImplementedError string
 
20
 
 
21
func (e NotImplementedError) Error() string {
 
22
        return "pkcs12: " + string(e)
 
23
}