Skip to main content
  • Home
  • login
  • Browse the archive

    swh mirror partner logo
swh logo
SoftwareHeritage
Software
Heritage
Mirror
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

Revision 4108e77e0eb091fdd9b9c4174374a6ac0cc0abd0 authored by Dmitry Belyavskiy on 27 May 2020, 09:56:07 UTC, committed by Dmitry Belyavskiy on 27 May 2020, 09:56:07 UTC
API changes
1 parent a90ad6c
  • Files
  • Changes
  • 2879a7b
  • /
  • tcl_tests
  • /
  • ciphers.try
Raw File
Cook and download a directory from the Software Heritage Vault

You have requested the cooking of the directory with identifier None into a standard tar.gz archive.

Are you sure you want to continue ?

Download a directory from the Software Heritage Vault

You have requested the download of the directory with identifier None as a standard tar.gz archive.

Are you sure you want to continue ?

Cook and download a revision from the Software Heritage Vault

You have requested the cooking of the history heading to revision with identifier swh:1:rev:4108e77e0eb091fdd9b9c4174374a6ac0cc0abd0 into a bare git archive.

Are you sure you want to continue ?

Download a revision from the Software Heritage Vault

You have requested the download of the history heading to revision with identifier swh:1:rev:4108e77e0eb091fdd9b9c4174374a6ac0cc0abd0 as a bare git archive.

Are you sure you want to continue ?

Invalid Email !

The provided email is not well-formed.

Download link has expired

The requested archive is no longer available for download from the Software Heritage Vault.

Do you want to cook it again ?

Permalinks

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • revision
  • content
revision badge
swh:1:rev:4108e77e0eb091fdd9b9c4174374a6ac0cc0abd0
content badge Iframe embedding
swh:1:cnt:ae75759fef9e07cd7480a7aa710ef43a56dcee1b
ciphers.try
#!/usr/bin/tclsh
lappend auto_path [file dirname [info script]]
package require ossltest
cd $::test::dir 
start_tests "Тесты на команду ciphers"

proc find_ciphers {openssl_args globpattern} {
	set found [lsort [lsearch -all -inline [split [string trim [grep $globpattern [openssl $openssl_args] ] "\n" ] : ] "$globpattern*"] ]
	return $found
}

test "Проверяем поддержку российских алгоритмов в tls" {
	find_ciphers "ciphers" "GOST"
} 0 {GOST2001-GOST89-GOST89 GOST2012-GOST8912-GOST8912}

test "Проверяем поддержку российских алгоритмов без шифрования в tls" {
	find_ciphers "ciphers NULL" "GOST"
} 0 {GOST2001-NULL-GOST94 GOST2012-NULL-GOST12}

#test "Проверяем отсутствие российских алгоритмов в ssl2" {
#	find_ciphers "ciphers -ssl2" "GOST"
#} 0 ""

#test "Проверяем работоспособность команды ciphers" {
#	find_ciphers "ciphers AES" "AES"
#} 0 {"ADH-AES256-SHA"
#"DHE-RSA-AES256-SHA"
#"DHE-DSS-AES256-SHA"
#"AES256-SHA"
#"ADH-AES128-SHA"
#"DHE-RSA-AES128-SHA"
#"DHE-DSS-AES128-SHA"
#"AES128-SHA"
#}


end_tests

The diff you're trying to view is too large. Only the first 1000 changed files have been loaded.
Showing with 0 additions and 0 deletions (0 / 0 diffs computed)
swh spinner

Computing file changes ...

ENEA — Copyright (C), ENEA. License: GNU AGPLv3+.
Legal notes  ::  JavaScript license information ::  Web API

back to top