Skip to content

Commit 6a12ba7

Browse files
committed
import aescts
1 parent 8488df1 commit 6a12ba7

5 files changed

Lines changed: 7 additions & 222 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# gokrb5
2-
[![GoDoc](https://godoc.org/github.com/jcmturner/gokrb5?status.svg)](https://godoc.org/github.com/jcmturner/gokrb5) [![Go Report Card](https://goreportcard.com/badge/github.com/jcmturner/gokrb5)](https://goreportcard.com/report/github.com/jcmturner/gokrb5)
2+
[![GoDoc](https://godoc.org/gopkg.in/jcmturner/gokrb5.v1?status.svg)](https://godoc.org/gopkg.in/jcmturner/gokrb5.v1) [![Go Report Card](https://goreportcard.com/badge/gopkg.in/jcmturner/gokrb5.v1)](https://goreportcard.com/report/gopkg.in/jcmturner/gokrb5.v1)
33

44
To get the package, execute:
55
```
@@ -51,7 +51,7 @@ Currently the following is working/tested:
5151
The gokrb5 libraries use the same krb5.conf configuration file format as MIT Kerberos, described [here](https://web.mit.edu/kerberos/krb5-latest/doc/admin/conf_files/krb5_conf.html).
5252
Config instances can be created by loading from a file path or by passing a string, io.Reader or bufio.Scanner to the relevant method:
5353
```go
54-
import "github.com/jcmturner/gokrb5/config"
54+
import "gopkg.in/jcmturner/gokrb5.v1/config"
5555
cfg, err := config.Load("/path/to/config/file")
5656
cfg, err := config.NewConfigFromString(krb5Str) //String must have appropriate newline separations
5757
cfg, err := config.NewConfigFromReader(reader)
@@ -60,7 +60,7 @@ cfg, err := config.NewConfigFromScanner(scanner)
6060
### Keytab files
6161
Standard keytab files can be read from a file or from a slice of bytes:
6262
```go
63-
import "github.com/jcmturner/gokrb5/keytab"
63+
import "gopkg.in/jcmturner/gokrb5.v1/keytab"
6464
ktFromFile, err := keytab.Load("/path/to/file.keytab")
6565
ktFromBytes, err := keytab.Parse(b)
6666

@@ -71,7 +71,7 @@ ktFromBytes, err := keytab.Parse(b)
7171
### Kerberos Client
7272
Create a client instance with either a password or a keytab:
7373
```go
74-
import "github.com/jcmturner/gokrb5/client"
74+
import "gopkg.in/jcmturner/gokrb5.v1/client"
7575
cl := client.NewClientWithPassword("username", "REALM.COM", "password")
7676
cl := client.NewClientWithKeytab("username", "REALM.COM", kt)
7777

@@ -179,7 +179,7 @@ if validuser, ok := ctx.Value(service.CTXKeyAuthenticated).(bool); ok && validus
179179
#### Generic Kerberised Service - Validating Client Details
180180
To validate the AP_REQ sent by the client on the service side call this method:
181181
```go
182-
import "github.com/jcmturner/gokrb5/service"
182+
import "gopkg.in/jcmturner/gokrb5.v1/service"
183183
if ok, creds, err := serivce.ValidateAPREQ(mt.APReq, kt, r.RemoteAddr); ok {
184184
// Perform application specifc actions
185185
// creds object has details about the client identity

crypto/aescts/aescts.go

Lines changed: 0 additions & 171 deletions
This file was deleted.

crypto/aescts/aescts_test.go

Lines changed: 0 additions & 44 deletions
This file was deleted.

crypto/rfc3962/encryption.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import (
55
"crypto/rand"
66
"errors"
77
"fmt"
8-
"github.com/jcmturner/gokrb5/crypto/aescts"
98
"github.com/jcmturner/gokrb5/crypto/common"
109
"github.com/jcmturner/gokrb5/crypto/etype"
10+
aescts "gopkg.in/jcmturner/aescts.v1"
1111
)
1212

1313
// EncryptData encrypts the data provided using methods specific to the etype provided as defined in RFC 3962.

crypto/rfc8009/encryption.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import (
77
"crypto/rand"
88
"errors"
99
"fmt"
10-
"github.com/jcmturner/gokrb5/crypto/aescts"
1110
"github.com/jcmturner/gokrb5/crypto/common"
1211
"github.com/jcmturner/gokrb5/crypto/etype"
1312
"github.com/jcmturner/gokrb5/iana/etypeID"
13+
aescts "gopkg.in/jcmturner/aescts.v1"
1414
)
1515

1616
// EncryptData encrypts the data provided using methods specific to the etype provided as defined in RFC 8009.

0 commit comments

Comments
 (0)