diff options
| author | Tom Yu <tlyu@mit.edu> | 2003-05-18 05:16:05 +0000 |
|---|---|---|
| committer | Tom Yu <tlyu@mit.edu> | 2003-05-18 05:16:05 +0000 |
| commit | 4dbf3745bb68a87427a4044c846427d816a43bbc (patch) | |
| tree | 03980d6af55bb6003cafa954e1eebb5435cb8647 /src/include | |
| parent | 955e7a919ce821648b70497f3129a4697cdbe813 (diff) | |
| download | krb5-4dbf3745bb68a87427a4044c846427d816a43bbc.tar.gz krb5-4dbf3745bb68a87427a4044c846427d816a43bbc.tar.xz krb5-4dbf3745bb68a87427a4044c846427d816a43bbc.zip | |
Sequence numbers are now unsigned. Implement lenient parser for
sequence numbers which folds received negative sequence numbers into
positive unsigned numbers. Constrain the space of initial sequence
numbers to facilitate backwards compatibility.
ticket: 1262
status: open
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15457 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/ChangeLog | 6 | ||||
| -rw-r--r-- | src/include/k5-int.h | 4 | ||||
| -rw-r--r-- | src/include/krb5.hin | 6 |
3 files changed, 11 insertions, 5 deletions
diff --git a/src/include/ChangeLog b/src/include/ChangeLog index 123ba7ea0..05817aea1 100644 --- a/src/include/ChangeLog +++ b/src/include/ChangeLog @@ -1,3 +1,9 @@ +2003-05-18 Tom Yu <tlyu@mit.edu> + + * k5-int.h: Sequence numbers are now unsigned. + + * krb5.hin: Sequence numbers are now unsigned. + 2003-05-16 Ken Raeburn <raeburn@mit.edu> * krb5.hin (KRB5_KPASSWD_ACCESSDENIED): New macro. diff --git a/src/include/k5-int.h b/src/include/k5-int.h index 086b7df71..08c7a7a4f 100644 --- a/src/include/k5-int.h +++ b/src/include/k5-int.h @@ -1050,7 +1050,7 @@ typedef struct _krb5_safe { krb5_timestamp timestamp; /* client time, optional */ krb5_int32 usec; /* microsecond portion of time, optional */ - krb5_int32 seq_number; /* sequence #, optional */ + krb5_ui_4 seq_number; /* sequence #, optional */ krb5_address *s_address; /* sender address */ krb5_address *r_address; /* recipient address, optional */ krb5_checksum *checksum; /* data integrity checksum */ @@ -1066,7 +1066,7 @@ typedef struct _krb5_priv_enc_part { krb5_data user_data; /* user data */ krb5_timestamp timestamp; /* client time, optional */ krb5_int32 usec; /* microsecond portion of time, opt. */ - krb5_int32 seq_number; /* sequence #, optional */ + krb5_ui_4 seq_number; /* sequence #, optional */ krb5_address *s_address; /* sender address */ krb5_address *r_address; /* recipient address, optional */ } krb5_priv_enc_part; diff --git a/src/include/krb5.hin b/src/include/krb5.hin index 310eb3976..0bf822e4a 100644 --- a/src/include/krb5.hin +++ b/src/include/krb5.hin @@ -974,7 +974,7 @@ typedef struct _krb5_authenticator { krb5_int32 cusec; /* client usec portion */ krb5_timestamp ctime; /* client sec portion */ krb5_keyblock *subkey; /* true session key, optional */ - krb5_int32 seq_number; /* sequence #, optional */ + krb5_ui_4 seq_number; /* sequence #, optional */ krb5_authdata **authorization_data; /* New add by Ari, auth data */ } krb5_authenticator; @@ -1100,7 +1100,7 @@ typedef struct _krb5_ap_rep_enc_part { krb5_timestamp ctime; /* client time, seconds portion */ krb5_int32 cusec; /* client time, microseconds portion */ krb5_keyblock *subkey; /* true session key, optional */ - krb5_int32 seq_number; /* sequence #, optional */ + krb5_ui_4 seq_number; /* sequence #, optional */ } krb5_ap_rep_enc_part; typedef struct _krb5_response { @@ -1644,7 +1644,7 @@ krb5_error_code krb5_generate_subkey const krb5_keyblock *, krb5_keyblock **); krb5_error_code krb5_generate_seq_number (krb5_context, - const krb5_keyblock *, krb5_int32 *); + const krb5_keyblock *, krb5_ui_4 *); #endif krb5_error_code KRB5_CALLCONV krb5_get_server_rcache (krb5_context, |
