Versions in this module Expand all Collapse all v0 v0.2.4 Aug 23, 2018 v0.2.3 Feb 12, 2018 v0.2.2 Oct 3, 2017 v0.2.1 Sep 1, 2017 Changes in this version type Handle + OrigUser *user.User + PamUser *user.User + func (h *Handle) StartAsPamUser() error + func (h *Handle) StopAsPamUser() error v0.2.0 Aug 24, 2017 Changes in this version + const Authtok + const ChangeExpiredAuthtok + const DeleteCred + const DisallowNullAuthtok + const EstablishCred + const Oldauthtok + const PrelimCheck + const RefreshCred + const ReinitializeCred + const Rhost + const Ruser + const Service + const Silent + const Tty + const UpdateAuthtok + const User + const UserPrompt + var ErrPassphrase = errors.New("incorrect login passphrase") + type Flag int + type Handle struct + GID int + UID int + func NewHandle(pamh unsafe.Pointer) (*Handle, error) + func (h *Handle) ClearData(name string) error + func (h *Handle) DropThreadPrivileges() error + func (h *Handle) GetItem(i Item) (unsafe.Pointer, error) + func (h *Handle) GetSecret(name string) (unsafe.Pointer, error) + func (h *Handle) GetString(name string) (string, error) + func (h *Handle) RaiseThreadPrivileges() error + func (h *Handle) SetSecret(name string, secret unsafe.Pointer) error + func (h *Handle) SetString(name string, s string) error + type Item int + type Transaction Handle + func Start(service, username string) (*Transaction, error) + func (t *Transaction) Authenticate(quiet bool) (bool, error) + func (t *Transaction) End() v0.1.0 Jun 28, 2017 Changes in this version + var ErrPamInternal = util.SystemError("internal pam error") + func IsUserLoginToken(username string, token *crypto.Key) (_ bool, err error)