This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] FIPS compliance and other crypt(3) improvements


ENOSYS is the error code for a function that is entirely unimplemented.
For this case, ENOTSUP is a better fit.

-  if(s[0] == __data->current_salt[0] && s[1] == __data->current_salt[1])
-    return;
+  if(s0 != __data->current_salt[0] && s1 == __data->current_salt[1])
+    return 0;

Looks like the first test got inverted.

Is there any standard or precedent for _SC_CRYPTO_FIPS_ENABLED?
We should not take lightly adding this to the public API/ABI.

If the only need for it is an internal one, then the check can be done
using internal functions only.


Thanks,
Roland


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]