+2005-02-16 Ken Raeburn <raeburn@mit.edu>
+
+ * init_ctx.c (init_common): Delete redundant library
+ initialization call that was run only on UNIX. Test assertion
+ that krb5_ui_8 really did get a proper 64-bit type.
+
2005-02-09 Tom Yu <tlyu@mit.edu>
* gic_pwd.c (krb5_get_init_creds_password): Fix so empty password
krb5_data seed;
int tmp;
+ /* Verify some assumptions. If the assumptions hold and the
+ compiler is optimizing, this should result in no code being
+ executed. If we're guessing "unsigned long long" instead
+ of using uint64_t, the possibility does exist that we're
+ wrong. */
+ {
+ krb5_ui_8 i64;
+ assert(sizeof(i64) == 8);
+ i64 = 0, i64--, i64 >>= 62;
+ assert(i64 == 3);
+ i64 = 1, i64 <<= 31, i64 <<= 31, i64 <<= 1;
+ assert(i64 != 0);
+ i64 <<= 1;
+ assert(i64 == 0);
+ }
+
retval = krb5int_initialize_library();
if (retval)
return retval;
retval = krb5_vercheck();
if (retval)
return retval;
-#else /* assume UNIX for now */
- retval = krb5int_initialize_library ();
- if (retval)
- return retval;
#endif
*context = 0;