tclhttpd

Artifact [60c3a91191]
Login

Artifact [60c3a91191]

Artifact 60c3a91191560640e173a24ee77bf14c8f49ebb7:


# This is a shim layer to deal with the inconsistencies
# between md5 1 and md5 2 (grr)

package require md5
package provide httpd::md5hex 1.0

# md5hex always returns a hex version of the md5 hash

if {[package vcompare [package present md5] 2.0] > -1} {
    # we have md5 v2 - it needs to be told to return hex
    interp alias {} md5hex {} ::md5::md5 -hex --
} else {
    # we have md5 v1 - it returns hex anyway
    interp alias {} md5hex {} ::md5::md5
}