(otp_print_stddict_extended, otp_print_hex_extended): New functions.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1019 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -79,6 +79,8 @@ typedef struct {
|
|||||||
OtpAlgorithm *otp_find_alg (char *name);
|
OtpAlgorithm *otp_find_alg (char *name);
|
||||||
void otp_print_stddict (OtpKey key, char *str);
|
void otp_print_stddict (OtpKey key, char *str);
|
||||||
void otp_print_hex (OtpKey key, char *str);
|
void otp_print_hex (OtpKey key, char *str);
|
||||||
|
void otp_print_stddict_extended (OtpKey key, char *str);
|
||||||
|
void otp_print_hex_extended (OtpKey key, char *str);
|
||||||
unsigned otp_checksum (OtpKey key);
|
unsigned otp_checksum (OtpKey key);
|
||||||
int otp_parse_hex (OtpKey key, char *);
|
int otp_parse_hex (OtpKey key, char *);
|
||||||
int otp_parse_stddict (OtpKey key, char *);
|
int otp_parse_stddict (OtpKey key, char *);
|
||||||
|
@@ -352,3 +352,17 @@ otp_print_hex (OtpKey key, char *str)
|
|||||||
key[0], key[1], key[2], key[3],
|
key[0], key[1], key[2], key[3],
|
||||||
key[4], key[5], key[6], key[7]);
|
key[4], key[5], key[6], key[7]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
otp_print_hex_extended (OtpKey key, char *str)
|
||||||
|
{
|
||||||
|
strcpy (str, OTP_HEXPREFIX);
|
||||||
|
otp_print_hex (key, str + strlen(OTP_HEXPREFIX));
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
otp_print_stddict_extended (OtpKey key, char *str)
|
||||||
|
{
|
||||||
|
strcpy (str, OTP_WORDPREFIX);
|
||||||
|
otp_print_stddict (key, str + strlen(OTP_WORDPREFIX));
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user