openvpn - openssl-vulnkey:24: DeprecationWarning: the sha module is deprecated; use the hashlib module instead import sha

Bug #352170 reported by Péter
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openssl-blacklist (Ubuntu)
Fix Released
Low
Unassigned
openvpn (Ubuntu)
Invalid
Undecided
Unassigned
openvpn-blacklist (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: openvpn

 * Starting virtual private network daemon(s)... * Autostarting VPN 'openvpn'
/usr/bin/openssl-vulnkey:24: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import sha

Revision history for this message
Thierry Carrez (ttx) wrote :

openssl-vulnkey is part of the openssl-blacklist package.
The warning can be safely ignored, but that would look better if we weren't emitting it at all ?

Changed in openssl-blacklist:
importance: Undecided → Low
status: New → Confirmed
Changed in openvpn:
status: New → Invalid
Revision history for this message
Thierry Carrez (ttx) wrote :

Patch to use hashlib instead of sha.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openssl-blacklist - 0.4.2ubuntu1

---------------
openssl-blacklist (0.4.2ubuntu1) jaunty; urgency=low

  * openssl-vulnkey: Use hashlib python module (instead of sha module) to
    avoid a DeprecationWarning when starting up openvpn (LP: #352170)

 -- Thierry Carrez <email address hidden> Mon, 06 Apr 2009 14:35:47 +0200

Changed in openssl-blacklist (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
szamcsi (akos-frohner) wrote :

The problem still exists in in openvpn-blacklist 0.3 (openvpn 2.1~rc11-1ubuntu3 depends on this package):

/usr/sbin/openvpn-vulnkey:22: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5

Revision history for this message
Thierry Carrez (ttx) wrote :

UNTESTED patch, based on openssl-vulnkey work

Changed in openvpn-blacklist (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Kees Cook (kees) wrote :

Thanks! The patch is almost correct (no ".new"). I've uploaded this (along with many other small changes) to Debian and it should sync shortly.

Changed in openvpn-blacklist (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openvpn-blacklist - 0.4

---------------
openvpn-blacklist (0.4) unstable; urgency=low

  * openvpn-blacklist: replace "md5" with "hashlib" for Python 2.6
    migration (LP: #352170).
  * debian/control:
    - update standards version, no changes needed.
    - extend the description for more details to avoid lintian warnings.
  * debian/copyright: fix lintian warnings.
  * openvpn-vulnkey.1: fix format error seen from lintian warning.

 -- Ubuntu Archive Auto-Sync <email address hidden> Fri, 12 Jun 2009 13:18:53 +0100

Changed in openvpn-blacklist (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.