This repository has been archived by the owner on Oct 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed null entries appearing on watch
Added increased error checking
- Loading branch information
JumpMaster
committed
Mar 1, 2015
1 parent
93c172f
commit 3f79c15
Showing
11 changed files
with
178 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Helper program to generate a new secret for use in two-factor | ||
// authentication. | ||
// | ||
// Copyright 2010 Google Inc. | ||
// Author: Markus Gutschke | ||
// | ||
// Adapted for the Pebble Smartwatch | ||
// Author: Kevin Cooper | ||
// https://github.com/JumpMaster/PebbleAuth | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
#ifndef _GOOGLEAUTHENTICATOR_H_ | ||
#define _GOOGLEAUTHENTICATOR_H_ | ||
|
||
#include <stdint.h> | ||
|
||
#define VERIFICATION_CODE_MODULUS (1000*1000) // Six digits | ||
#define BITS_PER_BASE32_CHAR 5 // Base32 expands space by 8/5 | ||
|
||
char *generateCode(const char *key, int timezone_offset) | ||
__attribute__((visibility("hidden"))); | ||
|
||
#endif /* _GOOGLEAUTHENTICATOR_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.