A pure-Haskell SSH server library (updated for darcs hub) (fork of pointfree's ssh-curve25519-sha256)

root / ssh.cabal

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
cabal-version: 2.0
name:                ssh
version:             0.4
synopsis:            A pure-Haskell SSH server library.
description:
    This a library for implementing your own servers that handle SSH
    requests and authorization, etc. Similar to Python's Twisted Conch
    library. It was originally developed by Alex Suraci for darcsden,
    providing simple SSH access for darcs push/pull.
    .
    This package is not actively maintained and has not had any recent
    security review. Despite the "pure-Haskell" description, it
    depends on the libssh2 C library.
    .
    A more recent alternative is the hssh package, based on cryptonite.

homepage:            http://hub.darcs.net/simon/ssh
license:             BSD3
license-file:        LICENSE
author:              Alex Suraci <suraci.alex@gmail.com>
maintainer:          Ganesh Sittampalam <ganesh@earth.li>, Simon Michael <simon@joyful.com>
category:            Network
build-type:          Simple
stability:           Unstable
tested-with:         GHC==8.6.5
extra-source-files:  CHANGES,
                     README,
                     test/keys/host,
                     test/keys/client/id_rsa_test,
                     test/keys/client/id_rsa_test.pub,
                     test/keys/client/id_rsa_test2,
                     test/keys/client/id_rsa_test2.pub,
                     test/keys/client/id_rsa_1024,
                     test/keys/client/id_rsa_1024.pub,
                     test/keys/client/id_rsa_2048,
                     test/keys/client/id_rsa_2048.pub,
                     test/keys/client/id_rsa_4096,
                     test/keys/client/id_rsa_4096.pub,
                     test/keys/client/id_dsa,
                     test/keys/client/id_dsa.pub


source-repository   head
    type:           darcs
    location:       http://hub.darcs.net/simon/ssh

library
  hs-source-dirs:   src
  ghc-options:   -Wall -fno-warn-unused-do-bind
  default-language: Haskell98

  exposed-modules:  SSH,
                    SSH.Channel,
                    SSH.Crypto,
                    SSH.NetReader,
                    SSH.Packet,
                    SSH.Sender,
                    SSH.Session

  other-modules:    SSH.Debug,
                    SSH.Util

  build-depends:    asn1-encoding >= 0.8,
                    asn1-types >= 0.3,
                    base >= 4 && < 4.15,
                    base64-string,
                    binary,
                    bytestring >= 0.10  && < 0.11,
                    cereal,
                    containers,
                    crypto-api,
                    crypto-pubkey-types >= 0.2,
                    cryptohash-cryptoapi,
                    cryptonite >= 0.27 && < 0.28,
                    QuickCheck,
                    tagged,
                    curve25519 >=0.2.4 && < 0.3,
                    HsOpenSSL >= 0.8,
                    integer-gmp >= 0.5 && < 1.1,
                    network < 2.8,
                    process,
                    RSA >= 2.1.0 && < 2.5,
                    SHA,
                    SimpleAES,
                    split,
                    mtl,
                    transformers

test-suite ssh-test
  type: exitcode-stdio-1.0
  hs-source-dirs: test
  main-is:        test.hs
  other-modules:    EmbedTree

  ghc-options: -Wall -threaded
  default-language: Haskell98

  build-depends:
      tasty                      >= 0.10  && < 1.4,
      tasty-hunit                >= 0.9   && < 0.11,
      tasty-quickcheck           >= 0.8   && < 0.11,
      HUnit                      >= 1.0   && < 1.7,
      QuickCheck                 >= 2.10  && < 2.15,
      libssh2                    >= 0.2   && < 0.3,
      filepath                   >= 1.3   && < 1.5,
      directory                  >= 1.2   && < 1.4,
      bytestring,
      template-haskell           >= 2.8   && < 2.17,
      th-lift-instances          >= 0.1   && < 0.2,
      pseudomacros               >= 0.0   && < 0.1,
      containers,
      base,
      ssh