Bug 348221

Summary: Port sharutils to use NSS library for cryptography
Product: [Fedora] Fedora Reporter: Peter Vrabec <pvrabec>
Component: sharutilsAssignee: Petr Pisar <ppisar>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: bashton, nmavrogi, tmraz
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-05 16:01:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 333741    

Description Peter Vrabec 2007-10-23 10:23:02 UTC
sharutils should be ported to use NSS library for cryptography.
See the tracking bug for details and links on how it could be done.

Comment 1 Fedora Admin XMLRPC Client 2010-06-03 09:31:12 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 2 Petr Pisar 2010-06-03 14:26:50 UTC
AFAIK, sharutils utilizes `md5sum' and `sum' tools from coreutils and it does not perform any other cryptographic operations.

Am I right?

If I'm, then this issue should be addressed to coreutils component.

Comment 3 Tomas Mraz 2010-06-03 15:58:15 UTC
I don't think so. It contains the source of MD-5 algorithm directly and it seems to call it.

Comment 4 Petr Pisar 2010-06-03 16:58:49 UTC
You are right. It uses lib/md5.* while creating archive if MD-5 summing is not disabled (default behavior):

src/shar.c:180:static int md5_count_mode = 1;
src/shar.c:694:  if (md5_count_mode)
src/shar.c:1678:      if (   md5_count_mode
src/shar.c:1680:	  && md5_stream (fp, md5buffer) == 0)
src/shar.c:1687:		   SM_md5_check_failed, here_delimiter);
src/shar.c:2064:      {"no-md5-digest", no_argument, &md5_count_mode, 0},
src/shar.c:2114:	md5_count_mode = 0;
src/shar.c:2323:      md5_count_mode = 0;

Thanks for pointing. I will try to rewrite the code in unspecified future (no experience with NSS).

Comment 5 Nikos Mavrogiannopoulos 2017-01-05 16:01:31 UTC
This is no longer on-going effort (see tracker bug).