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

imporomper initialization breaks compilation on Solaris #876

Merged
merged 1 commit into from Jan 3, 2019

Conversation

Sashan
Copy link
Contributor

@Sashan Sashan commented Dec 18, 2018

gcc we use on Solaris complains about empty initialization. This small patch
makes it happy.

I gave a try to krb5-1.17-beta2

@greghudson
Copy link
Member

I squashed in #877, #880, and #881 and made some minor changes. Please check if the revised commit works for you.

I'm not philosophically opposed to an autoconf test for __int128_t support. I was trying to adhere closely to the BoringSSL code, but they have different portability requirements.

The other half of that test is whether the platform is 64-bit. (Otherwise I believe it's more efficient to use the 32-bit code even if the compiler supports a 128-bit type.) I guess that's easily determined with AC_CHECK_SIZEOF([size_t]) and #if SIZEOF_SIZE_T >= 8.

@Sashan
Copy link
Contributor Author

Sashan commented Dec 31, 2018

I squashed in #877, #880, and #881 and made some minor changes. Please check if the revised commit works for you.

this still works. I'm happy with squashing all those pull requests to single changeset. And also thank you for making my changes to look better, especially update_thash().

I'm not philosophically opposed to an autoconf test for __int128_t support. I was trying to adhere closely to the BoringSSL code, but they have different portability requirements.

The other half of that test is whether the platform is 64-bit. (Otherwise I believe it's more efficient to use the 32-bit code even if the compiler supports a 128-bit type.) I guess that's easily determined with AC_CHECK_SIZEOF([size_t]) and #if SIZEOF_SIZE_T >= 8.

OK I'll try to cook something up and we will see if it will be a good fit or not.

FYI: the test failure I've mentioned in #880, covered my back. I've messed up
sha256() glue/wrapper of Kerberos to our internal libucrypto. I was passing *in.length
instead of in[i].length to _digest_update() function. I was fortunate enough the bug was noticed by unit tests. thank you for keeping kerberos in good shape.

@greghudson
Copy link
Member

Do the autoconf tests in this updated commit work for you?

@Sashan
Copy link
Contributor Author

Sashan commented Jan 2, 2019

Do the autoconf tests in this updated commit work for you?

yes, I need to run autoconf in order to get fresh configure script

In the LDAP KDB module, fix an empty initializer.  In the SPAKE
edwards25519 code, use autoconf tests to determine whether to use the
64-bit code.  In the SPAKE update_thash() function, make sure the
types of the conditional expression results match exactly.  In
libkrb5support, link against zap.o now that k5buf.o can use zap() (as
of commit 8ee8246).

[ghudson@mit.edu: squashed commits; rewrote commit message; adjusted
autoconf tests; minor code changes]

ticket: 8769 (new)
tags: pullup
target_version: 1.17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants