Commit 60cc6988 authored by David Stainton's avatar David Stainton

java: rename to KatzenClient

parent 92db0b18
......@@ -25,8 +25,8 @@ import (
cpki "github.com/katzenpost/core/pki"
)
// Client is katzenpost object
type Client struct {
// KatzenClient is katzenpost object
type KatzenClient struct {
log *log.Backend
pki cpki.Client
}
......@@ -39,7 +39,7 @@ type LogConfig struct {
}
// NewClient configures the pki to be used
func NewClient(pkiAddress, pkiKey string, logConfig *LogConfig) (*Client, error) {
func New(pkiAddress, pkiKey string, logConfig *LogConfig) (*KatzenClient, error) {
var pubKey eddsa.PublicKey
err := pubKey.FromString(pkiKey)
if err != nil {
......@@ -50,7 +50,7 @@ func NewClient(pkiAddress, pkiKey string, logConfig *LogConfig) (*Client, error)
if logConfig.Level != "" {
logLevel = logConfig.Level
}
client := new(Client)
client := new(KatzenClient)
client.log, err = log.New(logConfig.File, logLevel, !logConfig.Enabled)
if err != nil {
return nil, err
......
......@@ -54,7 +54,7 @@ type Session struct {
}
// NewSession stablishes a session with provider using key
func (c *Client) NewSession(user string, provider string, linkPrivKey *ecdh.PrivateKey) (*Session, error) {
func (c *KatzenClient) NewSession(user string, provider string, linkPrivKey *ecdh.PrivateKey) (*Session, error) {
var err error
session := new(Session)
clientCfg := &client.Config{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment