mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "usha ladkani (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SSHD-273) Add RFC 6668 (HMAC SHA-2) support
Date Tue, 18 Mar 2014 09:56:43 GMT

    [ https://issues.apache.org/jira/browse/SSHD-273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13939023#comment-13939023
] 

usha ladkani commented on SSHD-273:
-----------------------------------

i have all Mina jars in my classpath . please see my .classpath file.

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
	<classpathentry kind="lib" path="C:/minajars/mina-core-2.0.7.jar"/>
	<classpathentry kind="lib" path="C:/minajars/mina-example-2.0.7.jar"/>
	<classpathentry kind="lib" path="C:/minajars/mina-filter-compression-2.0.7.jar"/>
	<classpathentry kind="lib" path="C:/minajars/mina-integration-beans-2.0.7.jar"/>
	<classpathentry kind="lib" path="C:/minajars/mina-integration-jmx-2.0.7.jar"/>
	<classpathentry kind="lib" path="C:/minajars/mina-integration-ognl-2.0.7.jar"/>
	<classpathentry kind="lib" path="C:/minajars/mina-integration-xbean-2.0.7.jar"/>
	<classpathentry kind="lib" path="C:/minajars/mina-statemachine-2.0.7.jar"/>
	<classpathentry kind="lib" path="C:/minajars/mina-transport-apr-2.0.7.jar"/>
	<classpathentry kind="src" path="FtpServer/BcgFtpCommon/src"/>
	<classpathentry kind="src" path="FtpServer/FtpCore/src"/>
	<classpathentry kind="src" path="FtpServer/Ftplet-API/src"/>
	<classpathentry kind="src" path="FtpServer/Ftplet/src"/>
	<classpathentry kind="src" path="FtpServer/FtpManagement/src"/>
	<classpathentry kind="src" path="FtpServer/sftp-common/src"/>
	<classpathentry kind="src" path="FtpServer/sftp-core/src"/>
	<classpathentry kind="src" path="FtpServer/sshd-core/src"/>
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
	<classpathentry kind="lib" path="C:/Workspace/jars/db2jcc.jar"/>
	<classpathentry kind="lib" path="C:/Workspace/jars/db2jcc_license_cu.jar"/>
	<classpathentry kind="lib" path="C:/Workspace/jars/mina-filter-ssl-1.1.2.jar"/>
	<classpathentry kind="lib" path="C:/Workspace/jars/ojdbc14.jar"/>
	<classpathentry kind="lib" path="C:/Workspace/jars/jzlib-1.0.7.jar"/>
	<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
	<classpathentry kind="lib" path="C:/jsch-0.1.49.jar"/>
	<classpathentry kind="lib" path="C:/Workspace/ThirdPartyJars/slf4j-api-1.4.3.jar"/>
	<classpathentry kind="lib" path="C:/Workspace/ThirdPartyJars/slf4j-log4j12-1.4.3.jar"/>
	<classpathentry kind="lib" path="C:/Workspace/ThirdPartyJars/log4j-1.2.13.jar"/>
	<classpathentry kind="lib" path="C:/Workspace/jars/bcpg-jdk15-145.jar"/>
	<classpathentry kind="lib" path="C:/Workspace/jars/bcprov-jdk15-145.jar"/>
	<classpathentry kind="output" path="bin"/>
</classpath>

This time I am getthing this error when I run junit.

java.lang.IllegalStateException: Could not find a valid sshd io provider
	at org.apache.sshd.common.io.DefaultIoServiceFactoryFactory.newInstance(DefaultIoServiceFactoryFactory.java:67)
	at org.apache.sshd.common.io.DefaultIoServiceFactoryFactory.getFactory(DefaultIoServiceFactoryFactory.java:43)
	at org.apache.sshd.common.io.DefaultIoServiceFactoryFactory.create(DefaultIoServiceFactoryFactory.java:37)
	at org.apache.sshd.common.AbstractFactoryManager.getIoServiceFactory(AbstractFactoryManager.java:73)
	at org.apache.sshd.SshServer.createAcceptor(SshServer.java:409)
	at org.apache.sshd.SshServer.start(SshServer.java:325)
	at org.apache.sshd.util.MacTest.setUp(MacTest.java:141)
	at org.apache.sshd.util.MacTest.testHMACMD5(MacTest.java:70)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
	at java.lang.reflect.Method.invoke(Method.java:611)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

and console trace says

[15:23:44] main INFO  [] [] [org.apache.sshd.common.util.SecurityUtils] - Trying to register
BouncyCastle as a JCE provider
[15:23:45] main INFO  [] [] [org.apache.sshd.common.util.SecurityUtils] - Registration succeeded


> Add RFC 6668 (HMAC SHA-2) support
> ---------------------------------
>
>                 Key: SSHD-273
>                 URL: https://issues.apache.org/jira/browse/SSHD-273
>             Project: MINA SSHD
>          Issue Type: New Feature
>    Affects Versions: 0.10.0
>            Reporter: Kenny Root
>            Assignee: Guillaume Nodet
>             Fix For: 0.10.0
>
>         Attachments: 0001-SSHD-273-Add-RFC-6668-HMAC-SHA-2-support.patch, JSCHMain.java
>
>
> Adds support for HMAC with SHA-2 hashes (SHA-256 and SHA-512) as specified in RFC 6668.
Both HmacSHA256 and HmacSHA512 are added as they are supported by Sun/Oracle JDK, OpenJDK,
and BouncyCastle.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message