Re: [9] RFR: 8044038: Security tests fail on 32 bit linux platform

2014-05-29 Thread Wang Weijun
Vinnie The bug report shows sun/security/tools/keytool/autotest.sh also failed. The test includes LIBNAME=`find_one \ /usr/lib/libsoftokn3.so \ /usr/lib/i386-linux-gnu/nss/libsoftokn3.so \ /usr/lib/nss/libsoftokn3.so` Maybe adding a line for

Re: [9] RFR: 8044038: Security tests fail on 32 bit linux platform

2014-05-29 Thread Wang Weijun
it to autotest.sh too. On 29 May 2014, at 14:40, Wang Weijun weijun.w...@oracle.com wrote: Vinnie The bug report shows sun/security/tools/keytool/autotest.sh also failed. The test includes LIBNAME=`find_one \ /usr/lib/libsoftokn3.so \ /usr/lib/i386-linux-gnu/nss/libsoftokn3.so

Re: GSSCredential inside Subject?

2014-05-28 Thread Wang Weijun
/Ticket). However, the app can do whatever they want when constructing their own Subject objects. Although I am not sure if any such usage exists. I'll read more code history to see if there is a convention. Thanks Max Valerie On 05/27/14 03:50, Wang Weijun wrote: Hi Valerie I am

GSSCredential inside Subject?

2014-05-27 Thread Wang Weijun
Hi Valerie I am working on breaking JGSS into modules and is now looking at sun/security/jgss/GSSUtil.java. There is a method public static T extends GSSCredentialSpi VectorT searchSubject(final GSSNameSpi name, final Oid mech,

Re: RFR 8036709: Java 7 jarsigner displays warning about cert policy tree

2014-05-22 Thread Wang Weijun
. If I just treat them as an unordered set of certs, it seems too tolerant. --Max --Sean On 05/21/2014 08:20 PM, Wang Weijun wrote: Hi All Please review the code change at http://cr.openjdk.java.net/~weijun/8036709/webrev.01/ Before this change, jarsigner simply put a cert chain

RFR: 8043537: Changes for JDK-8039951 introduced circular dependency between Kerberos and com.sun.security.auth

2014-05-21 Thread Wang Weijun
Hi All Please review the code changes at http://cr.openjdk.java.net/~weijun/8043537/webrev.02/ The fix creates geteuid() in sun.misc.VM so DflCache.java does not depend on JAAS modules anymore. Alan suggested me to add some similar methods so other people can use it. Thanks Max

RFR 8036709: Java 7 jarsigner displays warning about cert policy tree

2014-05-21 Thread Wang Weijun
Hi All Please review the code change at http://cr.openjdk.java.net/~weijun/8036709/webrev.01/ Before this change, jarsigner simply put a cert chain into a CertPath and validate it. If the CertPath contains a trust anchor inside, the validation could fail even if it should not. This fix

Re: RFR 8036779: sun.security.krb5.KdcComm interprets kdc_timeout asmsec instead of sec

2014-05-19 Thread Wang Weijun
: On May 18, 10:06am, weijun.w...@oracle.com (Wang Weijun) wrote: -- Subject: Re: RFR 8036779: sun.security.krb5.KdcComm interprets kdc_timeout | How about this? I will support s and ms units (ms is not defined by o= | ther vendors though). But will still try to be a little smart when

unit of kdc_timeout

2014-05-18 Thread Wang Weijun
Hi All I am a member of Oracle's Java SE security team, and recently we found a bug about the inconsistency of the kdc_timeout setting between Java and other vendors. Java does not support specifying a unit and always treats the value as milliseconds. While the others support units and when no

unit of kdc_timeout

2014-05-18 Thread Wang Weijun
Hi All I am a member of Oracle's Java SE security team, and recently we found a bug about the inconsistency of the kdc_timeout setting between Java and other vendors. Java does not support specifying a unit and always treats the value as milliseconds. While the others support units and when no

Re: RFR 8036779: sun.security.krb5.KdcComm interprets kdc_timeout asmsec instead of sec

2014-05-17 Thread Wang Weijun
How about this? I will support s and ms units (ms is not defined by other vendors though). But will still try to be a little smart when there is no unit. --Max On May 15, 2014, at 10:09, Xuelei Fan xuelei@oracle.com wrote: The actual problem is, what if I want to use 121 seconds? It is a

Re: RFR 8040321: keytool and jarsigner tests doesn't pass though VM tools to tools

2014-04-24 Thread Wang Weijun
On Apr 24, 2014, at 19:17, Wang Weijun weijun.w...@oracle.com wrote: Please review the changes at http://cr.openjdk.java.net/~weijun/8040321/webrev.00 Most are simple, except that ts.sh needs to call TimeSTampCheck.java which then calls jarsigner, therefore more hops. To test

Re: RFR 8029994: Support include and includedir in krb5.conf

2014-04-20 Thread Wang Weijun
On Apr 18, 2014, at 2:22, Sean Mullan sean.mul...@oracle.com wrote: * Config.java - update copyright year Will add it before the push. I could work on multiple bugs of a single file and cannot determine which one gets pushed first. [202] can you log the IOException? OK. Thanks Max

Re: RFR 8040068 and 8039951: platform-related JAAS login modules on all platforms

2014-04-19 Thread Wang Weijun
On Apr 19, 2014, at 1:14, Sean Mullan sean.mul...@oracle.com wrote: In fact, when a login module is not found, an exception will be thrown immediately even if it's marked optional. Now that these modules are available on all platforms, this won't happen anymore. If you think this behavior is

RFR 8039358 8038837: tSAPolicyID and tSADigestAlg for jarsigner

2014-04-18 Thread Wang Weijun
Please review these two code changes: 8039358: com.sun.jarsigner.ContentSignerParameters.getTSAPolicyID() should be a default method http://cr.openjdk.java.net/~weijun/8039358/webrev.01/ 8038837: Add support to jarsigner for specifying timestamp hash algorithm

RFR 8040068 and 8039951: platform-related JAAS login modules on all platforms

2014-04-17 Thread Wang Weijun
Hi All There are two bugs. The first one is: https://bugs.openjdk.java.net/browse/JDK-8040068 8040068: SolarisSystem should be @Deprecated and @jdk.Exported(false) of which the code change is simply --- a/src/share/classes/com/sun/security/auth/module/SolarisSystem.java +++

Re: RFR 8039853: Provider.Service.newInstance() does not work with current JDK JGSS Mechanisms

2014-04-16 Thread Wang Weijun
that some engines require certain parameters to be be present on creation, and a newInstance(null) will trigger that exception. HTH, Brad On 4/15/2014 8:01 AM, Sean Mullan wrote: Looks fine to me. --Sean On 04/15/2014 04:03 AM, Wang Weijun wrote: Please review the code changes

RFR 8039853: Provider.Service.newInstance() does not work with current JDK JGSS Mechanisms

2014-04-15 Thread Wang Weijun
Please review the code changes at http://cr.openjdk.java.net/~weijun/8039853/webrev.00/ If you find it confused, I have mistakenly pushed some code changes in http://hg.openjdk.java.net/jdk9/dev/jdk/rev/ba6e2fcdfa15 and the current code change is trying to fix/enhance it. Altogether, the

Re: RFR 8029995: accept yes/no for boolean krb5.conf settings

2014-04-04 Thread Wang Weijun
the return value is a Boolean (instead of boolean) and could be null. Thanks Max On Jan 29, 2014, at 5:46, Sean Mullan sean.mul...@oracle.com wrote: On 01/28/2014 03:53 AM, Wang Weijun wrote: Please review the fix at http://cr.openjdk.java.net/~weijun/8029995/webrev.00/ The supported boolean

RFR 8038754: ReplayCacheTestProc test fails with timeout

2014-03-30 Thread Wang Weijun
Hi Please take a review at http://cr.openjdk.java.net/~weijun/8038754/webrev.00/ Before JDK-8031003, the debug message inside native JGSS is printed out on the Java side using System.out.println(msg); but after it, it is printed on the C side using puts(msg); and no newline will

Re: RFR 8038754: ReplayCacheTestProc test fails with timeout

2014-03-30 Thread Wang Weijun
Webrev updated at http://cr.openjdk.java.net/~weijun/8038754/webrev.01/ 'printf(s); printf(\n)' is now 'printf(s\n);'. One less call, and seems an extra benefit to force /s/ being a real literal. At least it compiles now. Thanks Max On Mar 30, 2014, at 23:27, Wang Weijun weijun.w

Re: Code Review Request: 8031003: [Parfait] warnings from jdk/src/share/native/sun/security/jgss/wrapper: JNI exception pending

2014-03-17 Thread Wang Weijun
NativeUtil.h: 88: How about puts(s) or printf(%s, s) (in case s includes %)? NativeUtil.c: 514-516: not necessary? 539-543: Why not TRACEn here? 639-659: It looks like if cbytes == NULL then the function returns NULL with no exception throwing and this would break something in GSSLibStub.c.

Re: Code review request 8037346, Need to terminate server process if client runs into problems

2014-03-17 Thread Wang Weijun
What is the problem now? Test fails after 120 seconds of default timeout? This SO_TIMEOUT could be useful to make sure a test fails early, but I am not sure if the value is big enough. If the failure is rare, I would choose 30 seconds. --Max On Mar 17, 2014, at 16:34, Xuelei Fan

Re: Code review request 8037346, Need to terminate server process if client runs into problems

2014-03-17 Thread Wang Weijun
On Mar 17, 2014, at 17:06, Xuelei Fan xuelei@oracle.com wrote: On 3/17/2014 4:59 PM, Wang Weijun wrote: What is the problem now? Test fails after 120 seconds of default timeout? These test are for shell script tests. The bug reported stated the server did not terminated on Windows. I

Re: Code review request 8037346, Need to terminate server process if client runs into problems

2014-03-17 Thread Wang Weijun
Looks good now. Thanks. --Max On Mar 17, 2014, at 17:17, Xuelei Fan xuelei@oracle.com wrote: Update to use 30 seconds: http://cr.openjdk.java.net/~xuelei/8037346/webrev.00/

Re: RFR 8037262: typo in error message in KrbAsReq.authenticate()

2014-03-13 Thread Wang Weijun
), the acceptor would need to send back a response, i.e. an AP-REP. Thanks Max --Sean On 03/12/2014 10:18 PM, Wang Weijun wrote: Tiny webrev at http://cr.openjdk.java.net/~weijun/8037262/webrev.00/ Thanks Max

Is there a way to provide a default toString() to an interface?

2014-03-12 Thread Wang Weijun
Hi All I have an interface that wraps an integer, like this interface Wrapper { int getX(); } Why cannot I add a default toString method default String toString() { return This is + getX(); } The error is error: default method toString in interface DSAPublicKey

Re: Code Review request: 8028591: NegativeArraySizeException in sun.security.util.DerInputStream.getUnalignedBitString()

2014-03-12 Thread Wang Weijun
tag into the 1st byte of output, which is also the 1st byte of the input, so there is no need to check. Can you show me a counter-example? ;-) Thanks Max Artem On 02/26/2014 01:54 PM, Wang Weijun wrote: Hi Artem The code change looks fine. It seems all your s/getLength

RFR 8037262: typo in error message in KrbAsReq.authenticate()

2014-03-12 Thread Wang Weijun
Tiny webrev at http://cr.openjdk.java.net/~weijun/8037262/webrev.00/ Thanks Max

Re: RFR 8035963: The failed Kerberos tests due to timeouts

2014-03-11 Thread Wang Weijun
Ping again. --Max On Mar 7, 2014, at 15:31, Wang Weijun weijun.w...@oracle.com wrote: Hi All Please take a review of http://cr.openjdk.java.net/~weijun/8035963/webrev.00/ I've added a ratio variable to these timeout related tests. The ratio is now set to 2 (one exception, 3

Re: RFR 8035963: The failed Kerberos tests due to timeouts

2014-03-11 Thread Wang Weijun
suggestion? Xuelei On 3/11/2014 5:54 PM, Wang Weijun wrote: Ping again. --Max On Mar 7, 2014, at 15:31, Wang Weijun weijun.w...@oracle.com wrote: Hi All Please take a review of http://cr.openjdk.java.net/~weijun/8035963/webrev.00/ I've added a ratio variable to these timeout

RFR 8036971: krb5.conf does not accept directive lines before the first section

2014-03-10 Thread Wang Weijun
Please review the fix at http://cr.openjdk.java.net/~weijun/8036971/webrev.00/ bug is https://bugs.openjdk.java.net/browse/JDK-8036971 Before the enhancement JDK-8029994 is available, a bug fix is needed. Thanks Max

Re: [9] Request for Review: 8036844: test failures due to wrong keystore paths

2014-03-06 Thread Wang Weijun
Change looks fine. *Xuelei*: Remember to run all tests next time. At least a JPRT. Thanks Max On Mar 7, 2014, at 10:25, Jason Uh jason...@oracle.com wrote: Please review this fix for 8036844, which updates the path to a keystore used in a couple of tests. The path is no longer accurate

RFR 8035963: The failed Kerberos tests due to timeouts

2014-03-06 Thread Wang Weijun
Hi All Please take a review of http://cr.openjdk.java.net/~weijun/8035963/webrev.00/ I've added a ratio variable to these timeout related tests. The ratio is now set to 2 (one exception, 3 for BadKdc2). This is mainly an experiment to how if they can be more stable when running slower. We

Re: Code review request, 8036676, Rename class name testEnabledProtocols to TestEnabledProtocols

2014-03-05 Thread Wang Weijun
Change looks fine. That was an awkward name. --Max On Mar 5, 2014, at 21:06, Xuelei Fan xuelei@oracle.com wrote: Hi, Please review this simple test fix: http://cr.openjdk.java.net/~xuelei/8036676/webrev.00/ Updated to use capital letter to start a class name. Thanks, Xuelei

Re: Code review 8032473, Restructure JSSE regression test hierarchy in jdk test

2014-03-04 Thread Wang Weijun
/8032473/update.export hg import should work. From the changeset, we can see the content changes in renames files. Xuelei On 3/3/2014 9:38 PM, Wang Weijun wrote: Hi Xuelei Yes it's quite difficult to read the actual webrev so instead I try to apply jdk.patch to my repo and see what

Re: Code review 8032473, Restructure JSSE regression test hierarchy in jdk test

2014-03-03 Thread Wang Weijun
, but we know there are at least path to store changes. --Max On Mar 3, 2014, at 19:46, Xuelei Fan xuelei@oracle.com wrote: webrev: http://cr.openjdk.java.net/~xuelei/8032473/webrev.00/ On 3/3/2014 1:54 PM, Wang Weijun wrote: As Brad mentioned in the comment, do you need to update

RFR 8036104: Rename the PAData.java test

2014-03-02 Thread Wang Weijun
Please review the fix for https://bugs.openjdk.java.net/browse/JDK-8036104 Basically, the PAData.java test has the same name as the internal PAData.java source file. IntelliJ IDEA always shows me the code completion hints I do not want. And when I manually code the correct method, it shows

Re: RFR 8036104: Rename the PAData.java test

2014-03-02 Thread Wang Weijun
Thanks. That is so fast. --Max On Mar 3, 2014, at 10:48, Xuelei Fan xuelei@oracle.com wrote: Fine. Xuelei On 3/3/2014 10:43 AM, Wang Weijun wrote:

Re: Code review 8032473, Restructure JSSE regression test hierarchy in jdk test

2014-03-02 Thread Wang Weijun
As Brad mentioned in the comment, do you need to update the test/TEST.groups file? Although not friendly to read, you do have a webrev somewhere? Thanks Max

Re: RFR 7176574 for 7u-dev: sun/security/krb5/auto/TcpTimeout.java failure

2014-02-28 Thread Wang Weijun
Ping again. On Feb 25, 2014, at 20:44, Wang Weijun weijun.w...@oracle.com wrote: Please review the code change at http://cr.openjdk.java.net/~weijun/7176574/7u/webrev.00/ This is a backport of 3 jdk8 fixes on sun/security/krb5/auto/TcpTimeout.java 7176574: sun/security/krb5/auto

Re: Code Review request: 8028591: NegativeArraySizeException in sun.security.util.DerInputStream.getUnalignedBitString()

2014-02-26 Thread Wang Weijun
Hi Artem Indefinite length is not allowed in DER so we never generate it. However, we do support reading it. I guess there must be a reason. Maybe 1. We don't have separate BerXXX classes, so basically we read both DER and BER with the same codes. 2. Most protocols require DER encoding, but

Re: Code Review request: 8028591: NegativeArraySizeException in sun.security.util.DerInputStream.getUnalignedBitString()

2014-02-26 Thread Wang Weijun
Oh, I might have mis-read your webrev. I take back my words below. Will read it again. Thanks Max On Feb 26, 2014, at 16:09, Wang Weijun weijun.w...@oracle.com wrote: Anyway, I think it's better to be tolerant, especially we have supported it ever since. Thanks Max On Feb 26

Re: Code Review request: 8028591: NegativeArraySizeException in sun.security.util.DerInputStream.getUnalignedBitString()

2014-02-26 Thread Wang Weijun
Hi Artem The code change looks fine. It seems all your s/getLength/getDefiniteLength/ substitutions are those that only works with a definite length. However, I do find the indefinite length support not satisfying. Just not sure if it's worth fixing. For example: 1. No idea why

RFR 7176574 for 7u-dev: sun/security/krb5/auto/TcpTimeout.java failure

2014-02-25 Thread Wang Weijun
Please review the code change at http://cr.openjdk.java.net/~weijun/7176574/7u/webrev.00/ This is a backport of 3 jdk8 fixes on sun/security/krb5/auto/TcpTimeout.java 7176574: sun/security/krb5/auto/TcpTimeout.java failed with solaris-i586

Re: Dup content in java.security-platform files

2014-02-23 Thread Wang Weijun
A somehow related question: is there a proposal to specify a security property on the command line? Thanks Max On Feb 24, 2014, at 1:44, Sean Mullan sean.mul...@oracle.com wrote: On 02/21/2014 01:17 AM, Wang Weijun wrote: Is there a proposal to extract them into a single include file

Dup content in java.security-platform files

2014-02-20 Thread Wang Weijun
Is there a proposal to extract them into a single include file? Thanks Max

Re: RFR: 8034033: [parfait] JNI exception pending in share/native/sun/security/krb5/nativeccache.c

2014-02-18 Thread Wang Weijun
Ping again. On Feb 15, 2014, at 16:18, Wang Weijun weijun.w...@oracle.com wrote: Webrev updated again at http://cr.openjdk.java.net/~weijun/8034033/webrev.02/ I add more checks to make sure it's a good initial TGT, and exit the loop when there is either an exception or the TGT

Re: RFR: 8034033: [parfait] JNI exception pending in share/native/sun/security/krb5/nativeccache.c

2014-02-15 Thread Wang Weijun
15, 2014, at 9:14, Wang Weijun weijun.w...@oracle.com wrote: Hi Valerie Since this is a while loop, it seems for each BuildXXX function, just returning NULL when an exception is thrown is not enough, because it's not returning to Java but still inside the native code so another JNI call

Re: 8034943: Eliminate Keberos dependency on com.sun.security.auth to avoid circular dependency

2014-02-14 Thread Wang Weijun
Code change looks good. Do you really want to use Copyright (c) 2000, 2014 for the new file? Thanks Max On Feb 14, 2014, at 20:06, Alan Bateman alan.bate...@oracle.com wrote: As part of preparing the JDK for modules we need to look at the dependencies between Kerberos and JAAS as they are

Re: 8034943: Eliminate Keberos dependency on com.sun.security.auth to avoid circular dependency

2014-02-14 Thread Wang Weijun
/2014 13:55, Wang Weijun wrote: Code change looks good. Do you really want to use Copyright (c) 2000, 2014 for the new file? Thanks Max. On the copyright date then I wasn't sure. As the code is coming from TextCallbackHandler (originally 2000 I assume) then I left this as the starting

Re: RFR: 8034033: [parfait] JNI exception pending in share/native/sun/security/krb5/nativeccache.c

2014-02-14 Thread Wang Weijun
Hi Valerie Since this is a while loop, it seems for each BuildXXX function, just returning NULL when an exception is thrown is not enough, because it's not returning to Java but still inside the native code so another JNI call might run. Do you think it's OK to add a ExceptionClear call after

Re: RFR: 8034033: [parfait] JNI exception pending in share/native/sun/security/krb5/nativeccache.c

2014-02-13 Thread Wang Weijun
Updated webrev at http://cr.openjdk.java.net/~weijun/8034033/webrev.01/ Thanks Max On Feb 13, 2014, at 8:56, Wang Weijun weijun.w...@oracle.com wrote: On Feb 13, 2014, at 8:48, Valerie (Yu-Ching) Peng valerie.p...@oracle.com wrote: Max, Changes look fine. However, I noticed some

RFR 8034762: Move krb5.conf related tests into a single place

2014-02-12 Thread Wang Weijun
Hi All The bug is at https://bugs.openjdk.java.net/browse/JDK-8034762. Basically there is nothing to review. I just move 10 files to a different directory and not a single bit of their contents was changed. They are test/sun/security/krb5/ConfPlusProp.java

Re: RFR: 8034033: [parfait] JNI exception pending in share/native/sun/security/krb5/nativeccache.c

2014-02-12 Thread Wang Weijun
. I see. So ExceptionCheck is just a return-void version of ExceptionOccurred. I'll create another webrev. Thanks Max Thanks, Valerie On 02/11/14 04:27, Wang Weijun wrote: Hi All I didn't attend the parfait day last week, but a new one is coming. Please review my fix at http

RFR: 8034033: [parfait] JNI exception pending in share/native/sun/security/krb5/nativeccache.c

2014-02-11 Thread Wang Weijun
Hi All I didn't attend the parfait day last week, but a new one is coming. Please review my fix at http://cr.openjdk.java.net/~weijun/8034033/webrev.00/ Thanks Max

RFR 8029995: accept yes/no for boolean krb5.conf settings

2014-01-28 Thread Wang Weijun
Please review the fix at http://cr.openjdk.java.net/~weijun/8029995/webrev.00/ The supported boolean values in this fix cover what MIT krb5 does and we also added 'f'. The old getBooleanValue() method returns true for “true” and false otherwise but the new method returns null if the value

Re: RFR 8029995: accept yes/no for boolean krb5.conf settings

2014-01-28 Thread Wang Weijun
is there is a NumberFormatException). --Max On Jan 29, 2014, at 5:46, Sean Mullan sean.mul...@oracle.com wrote: On 01/28/2014 03:53 AM, Wang Weijun wrote: Please review the fix at http://cr.openjdk.java.net/~weijun/8029995/webrev.00/ The supported boolean values in this fix cover what

Re: RFR: 8031572: jarsigner -verify exits with 0 when a jar file is not properly signed

2014-01-24 Thread Wang Weijun
) { +JarEntry e = getJarEntry(name); if (e == null) { throw new JarException(corrupted jar file); } so all names[i] become name. Thanks Max --Sean On 01/22/2014 02:01 AM, Wang Weijun wrote: Hi All Please take a look at the webrev

Re: RFR: 8031572: jarsigner -verify exits with 0 when a jar file is not properly signed

2014-01-22 Thread Wang Weijun
On Jan 22, 2014, at 15:01, Wang Weijun weijun.w...@oracle.com wrote: Hi All Please take a look at the webrev at http://cr.openjdk.java.net/~weijun/8031572/8/webrev.00/ JarVerifier has a flag that separates parsing signatures and verifying other entries. The fix makes sure only signature

RFR: 8031572: jarsigner -verify exits with 0 when a jar file is not properly signed

2014-01-21 Thread Wang Weijun
Hi All Please take a look at the webrev at http://cr.openjdk.java.net/~weijun/8031572/8/webrev.00/ JarVerifier has a flag that separates parsing signatures and verifying other entries. The fix makes sure only signature-related files are processed in the beginning so JarVerifier does not

Re: [PATCH] Handle alternative Kerberos credential cache locations

2014-01-14 Thread Wang Weijun
Hi Elliott Great to see this again. I’ll come back to this later. There are some urgent issues I have to deal with at this moment. I’ll also need to get those legal advices regarding pkg.m4 etc. Thanks Max On Jan 15, 2014, at 7:01, Elliott Baron eba...@redhat.com wrote: Hi Max, I have

Re: Code Review Request for 7196805: DH Key interoperability testing between SunJCE and JsafeJCE not successful

2013-06-25 Thread Wang Weijun
and apply to earlier releases. Thanks for the review please let me know if you have additional comments, Valerie On 06/17/13 22:41, Wang Weijun wrote: I will also apply the same change to P11DHPrivateKey/P11DHPublicKey then. Equality check using ASN.1 encoding is fine for non-DH algorithms

Re: Code Review Request for 7196805: DH Key interoperability testing between SunJCE and JsafeJCE not successful

2013-06-17 Thread Wang Weijun
I will also apply the same change to P11DHPrivateKey/P11DHPublicKey then. Equality check using ASN.1 encoding is fine for non-DH algorithms but not for DH. I cannot read the source codes now, but is it possible to implement the equals method right in the base interface using the JDK 8

Re: Code review request: 8014310: JAAS/Krb5LoginModule using des encytypes failure with NPE after JDK-8012679

2013-06-12 Thread Wang Weijun
在 Jun 13, 2013,4:14 AM,Valerie (Yu-Ching) Peng valerie.p...@oracle.com 写道: Changes look fine. Just curious, what's the reason for the changes in KeyTab.java? There was an EType.getDefaults() call there and it is useless. If kept, will need to check exception. -Max Valerie On

Re: Code review request: 8014196: ktab creates a file with zero kt_vno

2013-05-23 Thread Wang Weijun
在 May 24, 2013,5:14,Valerie (Yu-Ching) Peng valerie.p...@oracle.com 写道: On 05/12/13 22:39, Weijun Wang wrote: Hi Valerie Please take a look at http://cr.openjdk.java.net/~weijun/8014196/webrev.01/ KeyTab.getInstance() used to return null if the keytab file does not exists, but

Code review request: 8000653: SPNEGO tests fail at context.getDelegCred().getRemainingInitLifetime(mechOid)

2013-03-08 Thread Wang Weijun
Hi Valerie Please review this code change http://cr.openjdk.java.net/~weijun/8000653/webrev.00/ The reason is that if a SPNEGO GSSContext is established with krb5 underneath, its getDelegCred() only returns one krb5 cred element. I need to add more for mechs that are compatible with this

Re: Code review request: 8006564: Test sun/security/util/Oid/S11N.sh fails with timeout on Linux 32-bit

2013-01-21 Thread Wang Weijun
I've thought about that, but it means there is no way to check forward-compatibility. (Am I using the correct word? Deserialize jdk7 format with jdk6). Max 在 2013-1-21,下午9:58,Alan Bateman alan.bate...@oracle.com 写道: On 21/01/2013 01:51, Weijun Wang wrote: Please take a look at the webrev at

Re: Please review fix for 6951599 (Rename package of security tools for modularization)

2010-05-13 Thread Wang Weijun
Hi Mandy Sorry for late comment. My email client on Nokia E71 keeps crashing. (Hope it's good this time). I'm quite sure there are people out there calling KeyTool the same way. Also, I feel a little weird that one tool is treated diffrently from others. Is it possible to leave all

<    2   3   4   5   6   7