Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gpg: fixes for shell out during login #1405

Merged
merged 1 commit into from
Nov 26, 2015
Merged

gpg: fixes for shell out during login #1405

merged 1 commit into from
Nov 26, 2015

Conversation

maxtaco
Copy link
Contributor

@maxtaco maxtaco commented Nov 25, 2015

  • Use --no-tty if we're forking from the service
  • Say whether we're calling login from the CLI or the GUI, and use the reverse-sign technique if possible
  • allow --emulate-gui flag in login in devel mode, so we can test the service forking GPG
  • Ship fingerprints in binary over msgpack
  • strip out dead code
  • contextify GPG client

- Use --no-tty if we're forking from the service
- Say whether we're calling login from the CLI or the GUI, and use the reverse-sign technique if possible
- allow --emulate-gui flag in login in devel mode, so we can test the service forking GPG
- Ship fingerprints in binary over msgpack
- strip out dead code
- contextify GPG client
@maxtaco
Copy link
Contributor Author

maxtaco commented Nov 25, 2015

R? @patrickxb when you get a chance?

}

// NewLogin creates a Login engine. username is optional.
// deviceType should be libkb.DeviceTypeDesktop or
// libkb.DeviceTypeMobile.
func NewLogin(g *libkb.GlobalContext, deviceType, username string) *Login {
func NewLogin(g *libkb.GlobalContext, deviceType string, username string, ct keybase1.ClientType) *Login {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The clientType needs to be plumbed through to the creation of the GpgKey

@patrickxb
Copy link
Contributor

LGTM!

maxtaco added a commit that referenced this pull request Nov 26, 2015
gpg: fixes for shell out during login
@maxtaco maxtaco merged commit 8bab4b7 into master Nov 26, 2015
@maxtaco maxtaco deleted the maxtaco/CORE-2134 branch November 26, 2015 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants