Blame SPECS/python-nss.spec

7f5c89
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
7f5c89
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
7f5c89
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
7f5c89
7f5c89
%global build_api_doc 1
7f5c89
7f5c89
Name:           python-nss
2d7806
Version:        0.16.0
1677ba
Release:        3%{?dist}
7f5c89
Summary:        Python bindings for Network Security Services (NSS)
7f5c89
7f5c89
Group:          Development/Languages
7f5c89
License:        MPLv2.0 or GPLv2+ or LGPLv2+
7f5c89
URL:            ftp://ftp.mozilla.org/pub/mozilla.org/security/python-nss
2d7806
Source0:        ftp://ftp.mozilla.org/pub/mozilla.org/security/python-nss/releases/PYNSS_RELEASE_0_16_0/src/python-nss-%{version}.tar.bz2
7f5c89
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
7f5c89
2d7806
Patch1: nss-version.patch
1677ba
Patch2: python-nss-file-like-read.patch
1677ba
Patch3: python-nss-test-fips.patch
1677ba
Patch4: python-nss-set_certificate_db.patch
1677ba
Patch5: python-nss-doc-manifest.patch
7f5c89
7f5c89
%global docdir %{_docdir}/%{name}-%{version}
7f5c89
7f5c89
# We don't want to provide private python extension libs
7f5c89
%{?filter_setup:
7f5c89
%filter_provides_in %{python_sitearch}/.*\.so$
7f5c89
%filter_setup
7f5c89
}
7f5c89
7f5c89
BuildRequires: python-devel
1677ba
BuildRequires: python-setuptools
7f5c89
BuildRequires: python-docutils
7f5c89
BuildRequires: nspr-devel
7f5c89
BuildRequires: nss-devel
7f5c89
BuildRequires: epydoc
7f5c89
7f5c89
%description
7f5c89
This package provides Python bindings for Network Security Services
7f5c89
(NSS) and the Netscape Portable Runtime (NSPR).
7f5c89
7f5c89
NSS is a set of libraries supporting security-enabled client and
7f5c89
server applications. Applications built with NSS can support SSL v2
7f5c89
and v3, TLS, PKCS #5, PKCS #7, PKCS #11, PKCS #12, S/MIME, X.509 v3
7f5c89
certificates, and other security standards. Specific NSS
7f5c89
implementations have been FIPS-140 certified.
7f5c89
7f5c89
%package doc
7f5c89
Group: Documentation
7f5c89
Summary: API documentation and examples
7f5c89
Requires: %{name} = %{version}-%{release}
7f5c89
7f5c89
%description doc
7f5c89
API documentation and examples
7f5c89
7f5c89
%prep
7f5c89
%setup -q
2d7806
%patch1 -p1 -b .nss-version
1677ba
%patch2 -p1 -b .file-like
1677ba
%patch3 -p1 -b .fips-test
1677ba
%patch4 -p1 -b .set_certificate_db
1677ba
%patch5 -p1 -b .doc-manifest
7f5c89
7f5c89
%build
7f5c89
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" %{__python} setup.py build
7f5c89
%if %build_api_doc
7f5c89
%{__python} setup.py build_doc
7f5c89
%endif
7f5c89
7f5c89
%install
7f5c89
rm -rf $RPM_BUILD_ROOT
7f5c89
%{__python} setup.py install  -O1 --install-platlib %{python_sitearch} --skip-build --root $RPM_BUILD_ROOT
7f5c89
%{__python} setup.py install_doc --docdir %{docdir} --skip-build --root $RPM_BUILD_ROOT
7f5c89
7f5c89
# Remove execution permission from any example/test files in docdir
7f5c89
find $RPM_BUILD_ROOT/%{docdir} -type f | xargs chmod a-x
7f5c89
7f5c89
# Set correct permissions on .so files
7f5c89
chmod 0755 $RPM_BUILD_ROOT/%{python_sitearch}/nss/*.so
7f5c89
7f5c89
7f5c89
%clean
7f5c89
rm -rf $RPM_BUILD_ROOT
7f5c89
7f5c89
7f5c89
%files
7f5c89
%defattr(-,root,root,-)
7f5c89
%{python_sitearch}/*
7f5c89
%doc %{docdir}/ChangeLog
7f5c89
%doc %{docdir}/LICENSE.gpl
7f5c89
%doc %{docdir}/LICENSE.lgpl
7f5c89
%doc %{docdir}/LICENSE.mpl
7f5c89
%doc %{docdir}/README
7f5c89
7f5c89
%files doc
7f5c89
%defattr(-,root,root,-)
7f5c89
%doc %{docdir}/examples
7f5c89
%doc %{docdir}/test
7f5c89
%if %build_api_doc
7f5c89
%doc %{docdir}/api
7f5c89
%endif
7f5c89
7f5c89
%changelog
1677ba
* Tue May 26 2015 John Dennis <jdennis@redhat.com> - 0.16.0-3
1677ba
- Resolves: #1225212
1677ba
  Reads from file like objects actually only worked for file objects
1677ba
- Resolves: #1179573
1677ba
  python-nss-doc package is missing the run_tests script
1677ba
- Resolves: #1194349
1677ba
  test_pkcs12.py does not works in FIPS mode 
1677ba
2d7806
* Tue Nov 25 2014 John Dennis <jdennis@redhat.com> - 0.16.0-2
2d7806
- Remove the TLS 1.3 symbols from ssl_version_range.py example
2d7806
  because RHEL only has NSS 3.16.
2d7806
2d7806
* Mon Nov 24 2014 John Dennis <jdennis@redhat.com> - 0.16.0-1
2d7806
- resolves: bug#1155703 - Add API call for SSL_VersionRangeSet (rebase)
2d7806
  rebased to 0.16.0
2d7806
- The primary enhancements in this version is adding support for the
2d7806
  setting trust attributes on a Certificate, the SSL version range API,
2d7806
  information on the SSL cipher suites and information on the SSL connection.
2d7806
2d7806
  * The following module functions were added:
2d7806
2d7806
    - ssl.get_ssl_version_from_major_minor
2d7806
    - ssl.get_default_ssl_version_range
2d7806
    - ssl.get_supported_ssl_version_range
2d7806
    - ssl.set_default_ssl_version_range
2d7806
    - ssl.ssl_library_version_from_name
2d7806
    - ssl.ssl_library_version_name
2d7806
    - ssl.get_cipher_suite_info
2d7806
    - ssl.ssl_cipher_suite_name
2d7806
    - ssl.ssl_cipher_suite_from_name
2d7806
2d7806
  * The following deprecated module functions were removed:
2d7806
2d7806
    - ssl.nssinit
2d7806
    - ssl.nss_ini
2d7806
    - ssl.nss_shutdown
2d7806
2d7806
  * The following classes were added:
2d7806
2d7806
    - SSLCipherSuiteInfo
2d7806
    - SSLChannelInfo
2d7806
2d7806
  * The following class methods were added:
2d7806
2d7806
    - Certificate.trust_flags
2d7806
    - Certificate.set_trust_attributes
2d7806
2d7806
    - SSLSocket.set_ssl_version_range
2d7806
    - SSLSocket.get_ssl_version_range
2d7806
    - SSLSocket.get_ssl_channel_info
2d7806
    - SSLSocket.get_negotiated_host
2d7806
    - SSLSocket.connection_info_format_lines
2d7806
    - SSLSocket.connection_info_format
2d7806
    - SSLSocket.connection_info_str
2d7806
	
2d7806
    - SSLCipherSuiteInfo.format_lines
2d7806
    - SSLCipherSuiteInfo.format
2d7806
2d7806
    - SSLChannelInfo.format_lines
2d7806
    - SSLChannelInfo.format
2d7806
2d7806
  * The following class properties were added:
2d7806
2d7806
    - Certificate.ssl_trust_flags
2d7806
    - Certificate.email_trust_flags
2d7806
    - Certificate.signing_trust_flags
2d7806
2d7806
    - SSLCipherSuiteInfo.cipher_suite
2d7806
    - SSLCipherSuiteInfo.cipher_suite_name
2d7806
    - SSLCipherSuiteInfo.auth_algorithm
2d7806
    - SSLCipherSuiteInfo.auth_algorithm_name
2d7806
    - SSLCipherSuiteInfo.kea_type
2d7806
    - SSLCipherSuiteInfo.kea_type_name
2d7806
    - SSLCipherSuiteInfo.symmetric_cipher
2d7806
    - SSLCipherSuiteInfo.symmetric_cipher_name
2d7806
    - SSLCipherSuiteInfo.symmetric_key_bits
2d7806
    - SSLCipherSuiteInfo.symmetric_key_space
2d7806
    - SSLCipherSuiteInfo.effective_key_bits
2d7806
    - SSLCipherSuiteInfo.mac_algorithm
2d7806
    - SSLCipherSuiteInfo.mac_algorithm_name
2d7806
    - SSLCipherSuiteInfo.mac_bits
2d7806
    - SSLCipherSuiteInfo.is_fips
2d7806
    - SSLCipherSuiteInfo.is_exportable
2d7806
    - SSLCipherSuiteInfo.is_nonstandard
2d7806
2d7806
    - SSLChannelInfo.protocol_version
2d7806
    - SSLChannelInfo.protocol_version_str
2d7806
    - SSLChannelInfo.protocol_version_enum
2d7806
    - SSLChannelInfo.major_protocol_version
2d7806
    - SSLChannelInfo.minor_protocol_version
2d7806
    - SSLChannelInfo.cipher_suite
2d7806
    - SSLChannelInfo.auth_key_bits
2d7806
    - SSLChannelInfo.kea_key_bits
2d7806
    - SSLChannelInfo.creation_time
2d7806
    - SSLChannelInfo.creation_time_utc
2d7806
    - SSLChannelInfo.last_access_time
2d7806
    - SSLChannelInfo.last_access_time_utc
2d7806
    - SSLChannelInfo.expiration_time
2d7806
    - SSLChannelInfo.expiration_time_utc
2d7806
    - SSLChannelInfo.compression_method
2d7806
    - SSLChannelInfo.compression_method_name
2d7806
    - SSLChannelInfo.session_id
2d7806
2d7806
  * The following files were added:
2d7806
2d7806
    - doc/examples/cert_trust.py
2d7806
    - doc/examples/ssl_version_range.py
2d7806
2d7806
  * The following constants were added:
2d7806
    - nss.CERTDB_TERMINAL_RECORD
2d7806
    - nss.CERTDB_VALID_PEER
2d7806
    - nss.CERTDB_TRUSTED
2d7806
    - nss.CERTDB_SEND_WARN
2d7806
    - nss.CERTDB_VALID_CA
2d7806
    - nss.CERTDB_TRUSTED_CA
2d7806
    - nss.CERTDB_NS_TRUSTED_CA
2d7806
    - nss.CERTDB_USER
2d7806
    - nss.CERTDB_TRUSTED_CLIENT_CA
2d7806
    - nss.CERTDB_GOVT_APPROVED_CA
2d7806
    - ssl.SRTP_AES128_CM_HMAC_SHA1_32
2d7806
    - ssl.SRTP_AES128_CM_HMAC_SHA1_80
2d7806
    - ssl.SRTP_NULL_HMAC_SHA1_32
2d7806
    - ssl.SRTP_NULL_HMAC_SHA1_80
2d7806
    - ssl.SSL_CK_DES_192_EDE3_CBC_WITH_MD5
2d7806
    - ssl.SSL_CK_DES_64_CBC_WITH_MD5
2d7806
    - ssl.SSL_CK_IDEA_128_CBC_WITH_MD5
2d7806
    - ssl.SSL_CK_RC2_128_CBC_EXPORT40_WITH_MD5
2d7806
    - ssl.SSL_CK_RC2_128_CBC_WITH_MD5
2d7806
    - ssl.SSL_CK_RC4_128_EXPORT40_WITH_MD5
2d7806
    - ssl.SSL_CK_RC4_128_WITH_MD5
2d7806
    - ssl.SSL_FORTEZZA_DMS_WITH_FORTEZZA_CBC_SHA
2d7806
    - ssl.SSL_FORTEZZA_DMS_WITH_NULL_SHA
2d7806
    - ssl.SSL_FORTEZZA_DMS_WITH_RC4_128_SHA
2d7806
    - ssl.SSL_RSA_OLDFIPS_WITH_3DES_EDE_CBC_SHA
2d7806
    - ssl.SSL_RSA_OLDFIPS_WITH_DES_CBC_SHA
2d7806
    - ssl.TLS_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA
2d7806
    - ssl.TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA
2d7806
    - ssl.TLS_DHE_DSS_WITH_AES_128_GCM_SHA256
2d7806
    - ssl.TLS_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA
2d7806
    - ssl.TLS_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA
2d7806
    - ssl.TLS_DHE_DSS_WITH_DES_CBC_SHA
2d7806
    - ssl.TLS_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA
2d7806
    - ssl.TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA
2d7806
    - ssl.TLS_DHE_RSA_WITH_AES_128_CBC_SHA256
2d7806
    - ssl.TLS_DHE_RSA_WITH_AES_128_GCM_SHA256
2d7806
    - ssl.TLS_DHE_RSA_WITH_AES_256_CBC_SHA256
2d7806
    - ssl.TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA
2d7806
    - ssl.TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA
2d7806
    - ssl.TLS_DHE_RSA_WITH_DES_CBC_SHA
2d7806
    - ssl.TLS_DH_ANON_WITH_CAMELLIA_128_CBC_SHA
2d7806
    - ssl.TLS_DH_ANON_WITH_CAMELLIA_256_CBC_SHA
2d7806
    - ssl.TLS_DH_DSS_EXPORT_WITH_DES40_CBC_SHA
2d7806
    - ssl.TLS_DH_DSS_WITH_3DES_EDE_CBC_SHA
2d7806
    - ssl.TLS_DH_DSS_WITH_CAMELLIA_128_CBC_SHA
2d7806
    - ssl.TLS_DH_DSS_WITH_CAMELLIA_256_CBC_SHA
2d7806
    - ssl.TLS_DH_DSS_WITH_DES_CBC_SHA
2d7806
    - ssl.TLS_DH_RSA_EXPORT_WITH_DES40_CBC_SHA
2d7806
    - ssl.TLS_DH_RSA_WITH_3DES_EDE_CBC_SHA
2d7806
    - ssl.TLS_DH_RSA_WITH_CAMELLIA_128_CBC_SHA
2d7806
    - ssl.TLS_DH_RSA_WITH_CAMELLIA_256_CBC_SHA
2d7806
    - ssl.TLS_DH_RSA_WITH_DES_CBC_SHA
2d7806
    - ssl.TLS_DH_anon_EXPORT_WITH_DES40_CBC_SHA
2d7806
    - ssl.TLS_DH_anon_EXPORT_WITH_RC4_40_MD5
2d7806
    - ssl.TLS_DH_anon_WITH_3DES_EDE_CBC_SHA
2d7806
    - ssl.TLS_DH_anon_WITH_AES_128_CBC_SHA
2d7806
    - ssl.TLS_DH_anon_WITH_AES_256_CBC_SHA
2d7806
    - ssl.TLS_DH_anon_WITH_CAMELLIA_128_CBC_SHA
2d7806
    - ssl.TLS_DH_anon_WITH_CAMELLIA_256_CBC_SHA
2d7806
    - ssl.TLS_DH_anon_WITH_DES_CBC_SHA
2d7806
    - ssl.TLS_DH_anon_WITH_RC4_128_MD5
2d7806
    - ssl.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256
2d7806
    - ssl.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
2d7806
    - ssl.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
2d7806
    - ssl.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
2d7806
    - ssl.TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256
2d7806
    - ssl.TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256
2d7806
    - ssl.TLS_EMPTY_RENEGOTIATION_INFO_SCSV
2d7806
    - ssl.TLS_FALLBACK_SCSV
2d7806
    - ssl.TLS_NULL_WITH_NULL_NULL
2d7806
    - ssl.TLS_RSA_EXPORT_WITH_DES40_CBC_SHA
2d7806
    - ssl.TLS_RSA_EXPORT_WITH_RC2_CBC_40_MD5
2d7806
    - ssl.TLS_RSA_EXPORT_WITH_RC4_40_MD5
2d7806
    - ssl.TLS_RSA_WITH_3DES_EDE_CBC_SHA
2d7806
    - ssl.TLS_RSA_WITH_AES_128_CBC_SHA256
2d7806
    - ssl.TLS_RSA_WITH_AES_128_GCM_SHA256
2d7806
    - ssl.TLS_RSA_WITH_AES_256_CBC_SHA256
2d7806
    - ssl.TLS_RSA_WITH_CAMELLIA_128_CBC_SHA
2d7806
    - ssl.TLS_RSA_WITH_CAMELLIA_256_CBC_SHA
2d7806
    - ssl.TLS_RSA_WITH_DES_CBC_SHA
2d7806
    - ssl.TLS_RSA_WITH_IDEA_CBC_SHA
2d7806
    - ssl.TLS_RSA_WITH_NULL_MD5
2d7806
    - ssl.TLS_RSA_WITH_NULL_SHA
2d7806
    - ssl.TLS_RSA_WITH_NULL_SHA256
2d7806
    - ssl.TLS_RSA_WITH_RC4_128_MD5
2d7806
    - ssl.TLS_RSA_WITH_RC4_128_SHA
2d7806
    - ssl.TLS_RSA_WITH_SEED_CBC_SHA
2d7806
    - ssl.SSL_VARIANT_DATAGRAM
2d7806
    - ssl.SSL_VARIANT_STREAM
2d7806
    - ssl.SSL_LIBRARY_VERSION_2
2d7806
    - ssl.SSL_LIBRARY_VERSION_3_0
2d7806
    - ssl.SSL_LIBRARY_VERSION_TLS_1_0
2d7806
    - ssl.SSL_LIBRARY_VERSION_TLS_1_1
2d7806
    - ssl.SSL_LIBRARY_VERSION_TLS_1_2
2d7806
    - ssl.SSL_LIBRARY_VERSION_TLS_1_3
2d7806
    - ssl.ssl2
2d7806
    - ssl.ssl3
2d7806
    - ssl.tls1.0
2d7806
    - ssl.tls1.1
2d7806
    - ssl.tls1.2
2d7806
    - ssl.tls1.3
2d7806
2d7806
   * The following methods were missing thread locks, this has been fixed.
2d7806
2d7806
     - nss.nss_initialize
2d7806
     - nss.nss_init_context
2d7806
     - nss.nss_shutdown_context
2d7806
2d7806
* Mon Jun 16 2014 John Dennis <jdennis@redhat.com> - 0.15.0-1
2d7806
- resolves: bug#1109769 rebase to 0.15.0
2d7806
- includes fixes for 1087031 and 1060314
2d7806
  See doc/Changelog for details
2d7806
5cffb0
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.14.0-5
5cffb0
- Mass rebuild 2014-01-24
5cffb0
5cffb0
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.14.0-4
5cffb0
- Mass rebuild 2013-12-27
5cffb0
7f5c89
* Fri Oct 18 2013 John Dennis <jdennis@redhat.com> - 0.14.0-3
7f5c89
- resolves: bug#1003979
7f5c89
- In coordination with QE with regards to bz 1019934 it was requested
7f5c89
  the unittest patches be enhanced with a more robust version of
7f5c89
  test_pkcs12, no actual bug, just better testing.
7f5c89
7f5c89
* Tue Oct  8 2013 John Dennis <jdennis@redhat.com> - 0.14.0-2
7f5c89
- resolves: bug#1002589
7f5c89
- resolves: bug#1003979
7f5c89
7f5c89
- Rewrite setup_certs.py. No longer behaves like an expect script
7f5c89
  which was fragile. By default now creates a sql style database.
7f5c89
- By default all examples & tests use new sql format for NSS database
7f5c89
- db-name is now used instead of dbdir to provide distinction between
7f5c89
  the database directory and it's scheme (e.g. 'sql:')
7f5c89
- all examples and tests now default db-name to 'sql:pki'
7f5c89
- replaced legacy getopt & optparse command line argument handling
7f5c89
  with modern argparse.
7f5c89
7f5c89
* Mon May 13 2013 John Dennis <jdennis@redhat.com> - 0.14-1
7f5c89
  External Changes:
7f5c89
  -----------------
7f5c89
7f5c89
  The primary enhancements in this version is support of certifcate
7f5c89
  validation, OCSP support, and support for the certificate "Authority
7f5c89
  Information Access" extension.
7f5c89
7f5c89
  Enhanced certifcate validation including CA certs can be done via
7f5c89
  Certificate.verify() or Certificate.is_ca_cert(). When cert
7f5c89
  validation fails you can now obtain diagnostic information as to why
7f5c89
  the cert failed to validate. This is encapsulated in the
7f5c89
  CertVerifyLog class which is a iterable collection of
7f5c89
  CertVerifyLogNode objects. Most people will probablby just print the
7f5c89
  string representation of the returned CertVerifyLog object. Cert
7f5c89
  validation logging is handled by the Certificate.verify() method.
7f5c89
  Support has also been added for the various key usage and cert type
7f5c89
  entities which feature prominently during cert validation.
7f5c89
7f5c89
7f5c89
  * Certificate() constructor signature changed from
7f5c89
7f5c89
    Certificate(data=None, der_is_signed=True)
7f5c89
7f5c89
    to
7f5c89
7f5c89
    Certificate(data, certdb=cert_get_default_certdb(), perm=False, nickname=None)
7f5c89
7f5c89
    This change was necessary because all certs should be added to the
7f5c89
    NSS temporary database when they are loaded, but earlier code
7f5c89
    failed to to that. It's is not likely that an previous code was
7f5c89
    failing to pass initialization data or the der_is_signed flag so
7f5c89
    this change should be backwards compatible.
7f5c89
7f5c89
  * Fix bug #922247, PKCS12Decoder.database_import() method. Importing into
7f5c89
    a NSS database would sometimes fail or segfault.
7f5c89
7f5c89
  * Error codes and descriptions were updated from upstream NSPR & NSS.
7f5c89
7f5c89
  * The password callback did not allow for breaking out of a password
7f5c89
    prompting loop, now if None is returned from the password callback
7f5c89
    the password prompting is terminated.
7f5c89
7f5c89
  * nss.nss_shutdown_context now called from InitContext destructor,
7f5c89
    this assures the context is shutdown even if the programmer forgot
7f5c89
    to. It's still best to explicitly shut it down, this is just
7f5c89
    failsafe.
7f5c89
7f5c89
  * Support was added for shutdown callbacks.
7f5c89
7f5c89
  * The following classes were added:
7f5c89
    - nss.CertVerifyLogNode
7f5c89
    - nss.CertVerifyLog
7f5c89
    - error.CertVerifyError (exception)
7f5c89
    - nss.AuthorityInfoAccess
7f5c89
    - nss.AuthorityInfoAccesses
7f5c89
7f5c89
7f5c89
  * The following class methods were added:
7f5c89
    - nss.Certificate.is_ca_cert
7f5c89
    - nss.Certificate.verify
7f5c89
    - nss.Certificate.verify_with_log
7f5c89
    - nss.Certificate.get_cert_chain
7f5c89
    - nss.Certificate.check_ocsp_status
7f5c89
    - nss.PK11Slot.list_certs
7f5c89
    - nss.CertVerifyLogNode.format_lines
7f5c89
    - nss.CertVerifyLog.format_lines
7f5c89
    - nss.CRLDistributionPts.format_lines
7f5c89
7f5c89
  * The following class properties were added:
7f5c89
    - nss.CertVerifyLogNode.certificate
7f5c89
    - nss.CertVerifyLogNode.error
7f5c89
    - nss.CertVerifyLogNode.depth
7f5c89
    - nss.CertVerifyLog.count
7f5c89
7f5c89
  * The following module functions were added:
7f5c89
    - nss.x509_cert_type
7f5c89
    - nss.key_usage_flags
7f5c89
    - nss.list_certs
7f5c89
    - nss.find_certs_from_email_addr
7f5c89
    - nss.find_certs_from_nickname
7f5c89
    - nss.nss_get_version
7f5c89
    - nss.nss_version_check
7f5c89
    - nss.set_shutdown_callback
7f5c89
    - nss.get_use_pkix_for_validation
7f5c89
    - nss.set_use_pkix_for_validation
7f5c89
    - nss.enable_ocsp_checking
7f5c89
    - nss.disable_ocsp_checking
7f5c89
    - nss.set_ocsp_cache_settings
7f5c89
    - nss.set_ocsp_failure_mode
7f5c89
    - nss.set_ocsp_timeout
7f5c89
    - nss.clear_ocsp_cache
7f5c89
    - nss.set_ocsp_default_responder
7f5c89
    - nss.enable_ocsp_default_responder
7f5c89
    - nss.disable_ocsp_default_responder
7f5c89
7f5c89
  * The following files were added:
7f5c89
      src/py_traceback.h
7f5c89
      doc/examples/verify_cert.py
7f5c89
      test/test_misc.py
7f5c89
7f5c89
  * The following constants were added:
7f5c89
    - nss.KU_DIGITAL_SIGNATURE
7f5c89
    - nss.KU_NON_REPUDIATION
7f5c89
    - nss.KU_KEY_ENCIPHERMENT
7f5c89
    - nss.KU_DATA_ENCIPHERMENT
7f5c89
    - nss.KU_KEY_AGREEMENT
7f5c89
    - nss.KU_KEY_CERT_SIGN
7f5c89
    - nss.KU_CRL_SIGN
7f5c89
    - nss.KU_ENCIPHER_ONLY
7f5c89
    - nss.KU_ALL
7f5c89
    - nss.KU_DIGITAL_SIGNATURE_OR_NON_REPUDIATION
7f5c89
    - nss.KU_KEY_AGREEMENT_OR_ENCIPHERMENT
7f5c89
    - nss.KU_NS_GOVT_APPROVED
7f5c89
    - nss.PK11CertListUnique
7f5c89
    - nss.PK11CertListUser
7f5c89
    - nss.PK11CertListRootUnique
7f5c89
    - nss.PK11CertListCA
7f5c89
    - nss.PK11CertListCAUnique
7f5c89
    - nss.PK11CertListUserUnique
7f5c89
    - nss.PK11CertListAll
7f5c89
    - nss.certUsageSSLClient
7f5c89
    - nss.certUsageSSLServer
7f5c89
    - nss.certUsageSSLServerWithStepUp
7f5c89
    - nss.certUsageSSLCA
7f5c89
    - nss.certUsageEmailSigner
7f5c89
    - nss.certUsageEmailRecipient
7f5c89
    - nss.certUsageObjectSigner
7f5c89
    - nss.certUsageUserCertImport
7f5c89
    - nss.certUsageVerifyCA
7f5c89
    - nss.certUsageProtectedObjectSigner
7f5c89
    - nss.certUsageStatusResponder
7f5c89
    - nss.certUsageAnyCA
7f5c89
    - nss.ocspMode_FailureIsVerificationFailure
7f5c89
    - nss.ocspMode_FailureIsNotAVerificationFailure
7f5c89
7f5c89
  * cert_dump.py extended to print NS_CERT_TYPE_EXTENSION
7f5c89
7f5c89
  * cert_usage_flags, nss_init_flags now support optional repr_kind parameter
7f5c89
7f5c89
  Internal Changes:
7f5c89
  -----------------
7f5c89
7f5c89
  * Reimplement exception handling
7f5c89
    - NSPRError is now derived from StandardException instead of
7f5c89
      EnvironmentError. It was never correct to derive from
7f5c89
      EnvironmentError but was difficult to implement a new subclassed
7f5c89
      exception with it's own attributes, using EnvironmentError had
7f5c89
      been expedient.
7f5c89
7f5c89
    - NSPRError now derived from StandardException, provides:
7f5c89
      * errno (numeric error code)
7f5c89
      * strerror (error description associated with error code)
7f5c89
      * error_message (optional detailed message)
7f5c89
      * error_code (alias for errno)
7f5c89
      * error_desc (alias for strerror)
7f5c89
7f5c89
    - CertVerifyError derived from NSPRError, extends with:
7f5c89
      * usages (bitmask of returned usages)
7f5c89
      * log (CertVerifyLog object)
7f5c89
7f5c89
  * Expose error lookup to sibling modules
7f5c89
7f5c89
  * Use macros for bitmask_to_list functions to reduce code
7f5c89
    duplication and centralize logic.
7f5c89
7f5c89
  * Add repr_kind parameter to cert_trust_flags_str()
7f5c89
7f5c89
  * Add support for repr_kind AsEnumName to bitstring table lookup.
7f5c89
7f5c89
  * Add cert_type_bitstr_to_tuple() lookup function
7f5c89
7f5c89
  * Add PRTimeConvert(), used to convert Python time values
7f5c89
    to PRTime, centralizes conversion logic, reduces duplication
7f5c89
7f5c89
  * Add UTF8OrNoneConvert to better handle unicode parameters which
7f5c89
    are optional.
7f5c89
7f5c89
  * Add Certificate_summary_format_lines() utility to generate
7f5c89
    concise certificate identification info for output.
7f5c89
7f5c89
  * Certificate_new_from_CERTCertificate now takes add_reference parameter
7f5c89
    to properly reference count certs, should fix shutdown busy problems.
7f5c89
7f5c89
  * Add print_traceback(), print_cert() debugging support.
7f5c89
7f5c89
* Mon Feb 18 2013 John Dennis <jdennis@redhat.com> - 0.13-1
7f5c89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
7f5c89
7f5c89
* Mon Oct  8 2012 John Dennis <jdennis@redhat.com> - 0.13-0
7f5c89
- Update to version 0.13
7f5c89
  Introduced in 0.13:
7f5c89
7f5c89
  * Fix NSS SECITEM_CompareItem bug via workaround.
7f5c89
7f5c89
  * Fix incorrect format strings in PyArg_ParseTuple* for:
7f5c89
    - GeneralName
7f5c89
    - BasicConstraints
7f5c89
    - cert_x509_key_usage
7f5c89
7f5c89
  * Fix bug when decoding certificate BasicConstraints extension
7f5c89
7f5c89
  * Fix hang in setup_certs.
7f5c89
7f5c89
  * For NSS >= 3.13 support CERTDB_TERMINAL_RECORD
7f5c89
7f5c89
  * You can now query for a specific certificate extension
7f5c89
    Certficate.get_extension()
7f5c89
7f5c89
  * The following classes were added:
7f5c89
    - RSAGenParams
7f5c89
7f5c89
  * The following class methods were added:
7f5c89
    - nss.nss.Certificate.get_extension
7f5c89
    - nss.nss.PK11Slot.generate_key_pair
7f5c89
    - nss.nss.DSAPublicKey.format
7f5c89
    - nss.nss.DSAPublicKey.format_lines
7f5c89
7f5c89
  * The following module functions were added:
7f5c89
    - nss.nss.pub_wrap_sym_key
7f5c89
7f5c89
  * The following internal utilities were added:
7f5c89
    - PyString_UTF8
7f5c89
    - SecItem_new_alloc()
7f5c89
7f5c89
  * The following class constructors were modified to accept
7f5c89
    intialization parameters
7f5c89
7f5c89
    - KEYPQGParams (DSA generation parameters)
7f5c89
7f5c89
  * The PublicKey formatting (i.e. format_lines) was augmented
7f5c89
    to format DSA keys (formerly it only recognized RSA keys).
7f5c89
7f5c89
  * Allow lables and values to be justified when printing objects
7f5c89
7f5c89
  * The following were deprecated:
7f5c89
    - nss.nss.make_line_pairs (replaced by nss.nss.make_line_fmt_tuples)
7f5c89
7f5c89
    Deprecated Functionality:
7f5c89
    -------------------------
7f5c89
    - make_line_pairs() has been replaced by make_line_fmt_tuples()
7f5c89
      because 2-valued tuples were not sufficently general. It is
7f5c89
      expected very few programs will have used this function, it's mostly
7f5c89
      used internally but provided as a support utility.
7f5c89
7f5c89
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-4
7f5c89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
7f5c89
7f5c89
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-3
7f5c89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
7f5c89
7f5c89
* Thu Nov 17 2011 John Dennis <jdennis@redhat.com> - 0.12-2
7f5c89
- add patch python-nss-0.12-rsapssparams.patch to fix build problem
7f5c89
  which appears only with nss 3.13 and later.
7f5c89
7f5c89
* Mon Jun  6 2011 John Dennis <jdennis@redhat.com> - 0.12-1
7f5c89
  * Major new enhancement is additon of PKCS12 support and
7f5c89
    AlgorithmID's.
7f5c89
7f5c89
  * setup.py build enhancements
7f5c89
    - Now searches for the NSS and NSPR header files rather
7f5c89
      than hardcoding their location. This makes building friendlier
7f5c89
      on other systems (i.e. debian)
7f5c89
    - Now takes optional command line arguments, -d or --debug
7f5c89
      will turn on debug options during the build.
7f5c89
7f5c89
  * Fix reference counting bug in PK11_password_callback() which
7f5c89
    contributed to NSS not being able to shutdown due to
7f5c89
    resources still in use.
7f5c89
7f5c89
  * Add UTF-8 support to ssl.config_server_session_id_cache()
7f5c89
7f5c89
  * Added unit tests for cipher, digest, client_server.
7f5c89
7f5c89
  * All unittests now run, added test/run_tests to invoke
7f5c89
    full test suite.
7f5c89
7f5c89
  * Fix bug in test/setup_certs.py, hardcoded full path to
7f5c89
    libnssckbi.so was causing failures on 64-bit systems,
7f5c89
    just use the libnssckbi.so basename, modutil will find
7f5c89
    it on the standard search path.
7f5c89
7f5c89
  * doc/examples/cert_dump.py uses new AlgorithmID class to
7f5c89
    dump Signature Algorithm
7f5c89
7f5c89
  * doc/examples/ssl_example.py now can cleanly shutdown NSS.
7f5c89
7f5c89
  * Exception error messages now include PR error text if available.
7f5c89
7f5c89
  * The following classes were replaced:
7f5c89
    - SignatureAlgorithm replaced by new class AlgorithmID
7f5c89
7f5c89
  * The following classes were added:
7f5c89
    - AlgorithmID
7f5c89
    - PKCS12DecodeItem
7f5c89
    - PKCS12Decoder
7f5c89
7f5c89
  * The following class methods were added:
7f5c89
    - PK11Slot.authenticate()
7f5c89
    - PK11Slot.get_disabled_reason()
7f5c89
    - PK11Slot.has_protected_authentication_path()
7f5c89
    - PK11Slot.has_root_certs()
7f5c89
    - PK11Slot.is_disabled()
7f5c89
    - PK11Slot.is_friendly()
7f5c89
    - PK11Slot.is_internal()
7f5c89
    - PK11Slot.is_logged_in()
7f5c89
    - PK11Slot.is_removable()
7f5c89
    - PK11Slot.logout()
7f5c89
    - PK11Slot.need_login()
7f5c89
    - PK11Slot.need_user_init()
7f5c89
    - PK11Slot.user_disable()
7f5c89
    - PK11Slot.user_enable()
7f5c89
    - PKCS12DecodeItem.format()
7f5c89
    - PKCS12DecodeItem.format_lines()
7f5c89
    - PKCS12Decoder.database_import()
7f5c89
    - PKCS12Decoder.format()
7f5c89
    - PKCS12Decoder.format_lines()
7f5c89
7f5c89
  * The following class properties were added:
7f5c89
    - AlgorithmID.id_oid
7f5c89
    - AlgorithmID.id_str
7f5c89
    - AlgorithmID.id_tag
7f5c89
    - AlgorithmID.parameters
7f5c89
    - PKCS12DecodeItem.certificate
7f5c89
    - PKCS12DecodeItem.friendly_name
7f5c89
    - PKCS12DecodeItem.has_key
7f5c89
    - PKCS12DecodeItem.shroud_algorithm_id
7f5c89
    - PKCS12DecodeItem.signed_cert_der
7f5c89
    - PKCS12DecodeItem.type
7f5c89
    - SignedData.data
7f5c89
    - SignedData.der
7f5c89
7f5c89
  * The following module functions were added:
7f5c89
    - nss.nss.dump_certificate_cache_info()
7f5c89
    - nss.nss.find_slot_by_name()
7f5c89
    - nss.nss.fingerprint_format_lines()
7f5c89
    - nss.nss.get_internal_slot()
7f5c89
    - nss.nss.is_fips()
7f5c89
    - nss.nss.need_pw_init()
7f5c89
    - nss.nss.nss_init_read_write()
7f5c89
    - nss.nss.pk11_disabled_reason_name()
7f5c89
    - nss.nss.pk11_disabled_reason_str()
7f5c89
    - nss.nss.pk11_logout_all()
7f5c89
    - nss.nss.pkcs12_cipher_from_name()
7f5c89
    - nss.nss.pkcs12_cipher_name()
7f5c89
    - nss.nss.pkcs12_enable_all_ciphers()
7f5c89
    - nss.nss.pkcs12_enable_cipher()
7f5c89
    - nss.nss.pkcs12_export()
7f5c89
    - nss.nss.pkcs12_map_cipher()
7f5c89
    - nss.nss.pkcs12_set_nickname_collision_callback()
7f5c89
    - nss.nss.pkcs12_set_preferred_cipher()
7f5c89
    - nss.nss.token_exists()
7f5c89
    - nss.ssl.config_mp_server_sid_cache()
7f5c89
    - nss.ssl.config_server_session_id_cache_with_opt()
7f5c89
    - nss.ssl.get_max_server_cache_locks()
7f5c89
    - nss.ssl.set_max_server_cache_locks()
7f5c89
    - nss.ssl.shutdown_server_session_id_cache()
7f5c89
7f5c89
  * The following constants were added:
7f5c89
    - nss.nss.int.PK11_DIS_COULD_NOT_INIT_TOKEN
7f5c89
    - nss.nss.int.PK11_DIS_NONE
7f5c89
    - nss.nss.int.PK11_DIS_TOKEN_NOT_PRESENT
7f5c89
    - nss.nss.int.PK11_DIS_TOKEN_VERIFY_FAILED
7f5c89
    - nss.nss.int.PK11_DIS_USER_SELECTED
7f5c89
    - nss.nss.int.PKCS12_DES_56
7f5c89
    - nss.nss.int.PKCS12_DES_EDE3_168
7f5c89
    - nss.nss.int.PKCS12_RC2_CBC_128
7f5c89
    - nss.nss.int.PKCS12_RC2_CBC_40
7f5c89
    - nss.nss.int.PKCS12_RC4_128
7f5c89
    - nss.nss.int.PKCS12_RC4_40
7f5c89
7f5c89
  * The following files were added:
7f5c89
    - test/run_tests
7f5c89
    - test/test_cipher.py (replaces cipher_test.py)
7f5c89
    - test/test_client_server.py
7f5c89
    - test/test_digest.py (replaces digest_test.py)
7f5c89
    - test/test_pkcs12.py
7f5c89
7f5c89
  * The following were deprecated:
7f5c89
    - SignatureAlgorithm
7f5c89
7f5c89
* Tue Mar 22 2011 John Dennis <jdennis@redhat.com> - 0.11-2
7f5c89
- Resolves: #689059
7f5c89
  Add family parameter to Socket constructors in examples and doc.
7f5c89
  Mark implicit family parameter as deprecated.
7f5c89
  Raise exception if Socket family does not match NetworkAddress family.
7f5c89
  Add --server-subject to setup_certs.py (made testing IPv6 easier without DNS)
7f5c89
7f5c89
* Mon Feb 21 2011 John Dennis <jdennis@redhat.com> - 0.11-1
7f5c89
  * Better support for IPv6
7f5c89
7f5c89
  * Add AddrInfo class to support IPv6 address resolution. Supports
7f5c89
    iteration over it's set of NetworkAddress objects and provides
7f5c89
    hostname, canonical_name object properties.
7f5c89
7f5c89
  * Add PR_AI_* constants.
7f5c89
7f5c89
  * NetworkAddress constructor and NetworkAddress.set_from_string() added
7f5c89
    optional family parameter. This is necessary for utilizing
7f5c89
    PR_GetAddrInfoByName().
7f5c89
7f5c89
  * NetworkAddress initialized via a string paramter are now initalized via
7f5c89
    PR_GetAddrInfoByName using family.
7f5c89
7f5c89
  * Add NetworkAddress.address property to return the address sans the
7f5c89
    port as a string. NetworkAddress.str() includes the port. For IPv6 the
7f5c89
    a hex string must be enclosed in brackets if a port is appended to it,
7f5c89
    the bracketed hex address with appended with a port is unappropriate
7f5c89
    in some circumstances, hence the new address property to permit either
7f5c89
    the address string with a port or without a port.
7f5c89
7f5c89
  * Fix the implementation of the NetworkAddress.family property, it was
7f5c89
    returning bogus data due to wrong native data size.
7f5c89
7f5c89
  * HostEntry objects now support iteration and indexing of their
7f5c89
    NetworkAddress members.
7f5c89
7f5c89
  * Add io.addr_family_name() function to return string representation of
7f5c89
    PR_AF_* constants.
7f5c89
7f5c89
  * Modify example and test code to utilize AddrInfo instead of deprecated
7f5c89
    NetworkAddress functionality. Add address family command argument to
7f5c89
    ssl_example.
7f5c89
7f5c89
  * Fix pty import statement in test/setup_certs.py
7f5c89
7f5c89
    Deprecated Functionality:
7f5c89
    -------------------------
7f5c89
7f5c89
  * NetworkAddress initialized via a string paramter is now
7f5c89
    deprecated. AddrInfo should be used instead.
7f5c89
7f5c89
  * NetworkAddress.set_from_string is now deprecated. AddrInfo should be
7f5c89
    used instead.
7f5c89
7f5c89
  * NetworkAddress.hostentry is deprecated. It was a bad idea,
7f5c89
    NetworkAddress objects can support both IPv4 and IPv6, but a HostEntry
7f5c89
    object can only support IPv4. Plus the implementation depdended on
7f5c89
    being able to perform a reverse DNS lookup which is not always
7f5c89
    possible.
7f5c89
7f5c89
  * HostEntry.get_network_addresses() and HostEntry.get_network_address()
7f5c89
    are now deprecated. In addition their port parameter is now no longer
7f5c89
    respected. HostEntry objects now support iteration and
7f5c89
    indexing of their NetworkAddress and that should be used to access
7f5c89
    their NetworkAddress objects instead.
7f5c89
7f5c89
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-4
7f5c89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
7f5c89
7f5c89
* Tue Jan 11 2011 John Dennis <jdennis@redhat.com> - 0.10-3
7f5c89
- Fix all rpmlint warnings
7f5c89
- doc for license, changelog etc. now in main package,
7f5c89
  doc subpackage now only contains api doc, examples, test, etc.
7f5c89
- Filter provides for .so files
7f5c89
- Remove execute permission on everything in docdir
7f5c89
- Capitalize description
7f5c89
7f5c89
* Tue Jan 11 2011 John Dennis <jdennis@redhat.com> - 0.10-2
7f5c89
- split documentation out into separate doc sub-package
7f5c89
  and make building api documentation optional
7f5c89
7f5c89
* Mon Jan 10 2011 John Dennis <jdennis@redhat.com> - 0.10-1
7f5c89
- The following classes were added:
7f5c89
    InitParameters
7f5c89
    InitContext
7f5c89
7f5c89
-The following module functions were added:
7f5c89
    nss.nss.nss_initialize()
7f5c89
    nss.nss.nss_init_context()
7f5c89
    nss.nss.nss_shutdown_context()
7f5c89
    nss.nss.nss_init_flags()
7f5c89
7f5c89
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.9-9
7f5c89
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
7f5c89
7f5c89
* Fri Jul 16 2010 John Dennis <jdennis@redhat.com> - 0.9-8
7f5c89
- add nss_is_initialized()
7f5c89
7f5c89
* Thu Jul  8 2010 John Dennis <jdennis@redhat.com> - 0.9-7
7f5c89
- Remove nss_init_nodb() when nss modules loads from previous version
7f5c89
  apparently this prevents subsequent calls to nss_init with a
7f5c89
  database to silently fail.
7f5c89
- Clean up some cruft in doc/examples/verify_server.py
7f5c89
7f5c89
* Thu Jun 24 2010 John Dennis <jdennis@redhat.com> - 0.9-6
7f5c89
- Invoke nss_init_nodb() when nss modules loads, this prevents segfaults
7f5c89
  in NSS if Python programmer forgot to call one of the NSS
7f5c89
  initialization routines.
7f5c89
7f5c89
- Rename the classes X500Name, X500RDN, X500AVA to DN, RDN, AVA
7f5c89
  respectively.
7f5c89
7f5c89
- DN and RDN objects now return a list of their contents when indexed by
7f5c89
  type, this is to support multi-valued items.
7f5c89
7f5c89
- Fix bug where AVA object's string representation did not include it's
7f5c89
  type.
7f5c89
7f5c89
- Enhance test/test_cert_components.py unit test to test for above
7f5c89
  changes.
7f5c89
7f5c89
- Add CertificateRequest object
7f5c89
7f5c89
* Mon Jun 14 2010 John Dennis <jdennis@redhat.com> - 0.9-5
7f5c89
- Fix incomplete read bug (due to read ahead buffer bookkeeping).
7f5c89
- Remove python-nss specific httplib.py, no longer needed
7f5c89
  python-nss now compatible with standard library
7f5c89
- Rewrite httplib_example.py to use standard library and illustrate
7f5c89
  ssl, non-ssl, connection class, http class usage
7f5c89
7f5c89
* Wed Jun  9 2010 John Dennis <jdennis@redhat.com> - 0.9-4
7f5c89
- add nss.cert_usage_flags(), use it in ssl_example.py
7f5c89
7f5c89
* Sun Jun  6 2010 John Dennis <jdennis@redhat.com> - 0.9-3
7f5c89
- Add format_lines() & format() methods to the new certificate extension objects.
7f5c89
- Add printing of certificate extensions.
7f5c89
- Add BasicContstraints certificate extension.
7f5c89
- Fix several reference counting and memory problems discovered with valgrind.
7f5c89
7f5c89
* Tue Jun  1 2010 John Dennis <jdennis@redhat.com> - 0.9-2
7f5c89
- fold in more ref counting patches from Miloslav Trmač <mitr@redhat.com>
7f5c89
  into upstream.
7f5c89
  Did not bump upstream version, just bumped release ver in this spec file.
7f5c89
7f5c89
* Fri May 28 2010 John Dennis <jdennis@redhat.com> - 0.9-1
7f5c89
- Unicode objects now accepted as well as str objects for
7f5c89
  interfaces expecting a string.
7f5c89
7f5c89
- Sockets were enhanced thusly:
7f5c89
    - Threads will now yield during blocking IO.
7f5c89
    - Socket.makefile() reimplemented
7f5c89
          file object methods that had been missing (readlines(), sendall(),
7f5c89
          and iteration) were implemented, makefile now just returns the same
7f5c89
          Socket object but increments an "open" ref count. Thus a Socket
7f5c89
          object behaves like a file object and must be closed once for each
7f5c89
          makefile() call before it's actually closed.
7f5c89
    - Sockets now support the iter protocol
7f5c89
    - Add Socket.readlines(), Socket.sendall()
7f5c89
7f5c89
- The following classes were added:
7f5c89
    AuthKeyID
7f5c89
    BasicConstraints
7f5c89
    CRLDistributionPoint
7f5c89
    CRLDistributionPts
7f5c89
    CertificateExtension
7f5c89
    GeneralName
7f5c89
    SignedCRL
7f5c89
    X500AVA
7f5c89
    X500Name
7f5c89
    X500RDN
7f5c89
7f5c89
- The following module functions were added:
7f5c89
    nss.nss.cert_crl_reason_from_name()
7f5c89
    nss.nss.cert_crl_reason_name()
7f5c89
    nss.nss.cert_general_name_type_from_name()
7f5c89
    nss.nss.cert_general_name_type_name()
7f5c89
    nss.nss.cert_usage_flags()
7f5c89
    nss.nss.decode_der_crl()
7f5c89
    nss.nss.der_universal_secitem_fmt_lines()
7f5c89
    nss.nss.import_crl()
7f5c89
    nss.nss.make_line_pairs()
7f5c89
    nss.nss.oid_dotted_decimal()
7f5c89
    nss.nss.oid_str()
7f5c89
    nss.nss.oid_tag()
7f5c89
    nss.nss.oid_tag_name()
7f5c89
    nss.nss.read_der_from_file()
7f5c89
    nss.nss.x509_alt_name()
7f5c89
    nss.nss.x509_ext_key_usage()
7f5c89
    nss.nss.x509_key_usage()
7f5c89
7f5c89
- The following class methods and properties were added:
7f5c89
  Note: it's a method if the name is suffixed with (), a propety otherwise
7f5c89
    Socket.next()
7f5c89
    Socket.readlines()
7f5c89
    Socket.sendall()
7f5c89
    SSLSocket.next()
7f5c89
    SSLSocket.readlines()
7f5c89
    SSLSocket.sendall()
7f5c89
    AuthKeyID.key_id
7f5c89
    AuthKeyID.serial_number
7f5c89
    AuthKeyID.get_general_names()
7f5c89
    CRLDistributionPoint.issuer
7f5c89
    CRLDistributionPoint.get_general_names()
7f5c89
    CRLDistributionPoint.get_reasons()
7f5c89
    CertDB.find_crl_by_cert()
7f5c89
    CertDB.find_crl_by_name()
7f5c89
    Certificate.extensions
7f5c89
    CertificateExtension.critical
7f5c89
    CertificateExtension.name
7f5c89
    CertificateExtension.oid
7f5c89
    CertificateExtension.oid_tag
7f5c89
    CertificateExtension.value
7f5c89
    GeneralName.type_enum
7f5c89
    GeneralName.type_name
7f5c89
    GeneralName.type_string
7f5c89
    SecItem.der_to_hex()
7f5c89
    SecItem.get_oid_sequence()
7f5c89
    SecItem.to_hex()
7f5c89
    SignedCRL.delete_permanently()
7f5c89
    X500AVA.oid
7f5c89
    X500AVA.oid_tag
7f5c89
    X500AVA.value
7f5c89
    X500AVA.value_str
7f5c89
    X500Name.cert_uid
7f5c89
    X500Name.common_name
7f5c89
    X500Name.country_name
7f5c89
    X500Name.dc_name
7f5c89
    X500Name.email_address
7f5c89
    X500Name.locality_name
7f5c89
    X500Name.org_name
7f5c89
    X500Name.org_unit_name
7f5c89
    X500Name.state_name
7f5c89
    X500Name.add_rdn()
7f5c89
    X500Name.has_key()
7f5c89
    X500RDN.has_key()
7f5c89
7f5c89
- The following module functions were removed:
7f5c89
  Note: use nss.nss.oid_tag() instead
7f5c89
    nss.nss.sec_oid_tag_from_name()
7f5c89
    nss.nss.sec_oid_tag_name()
7f5c89
    nss.nss.sec_oid_tag_str()
7f5c89
7f5c89
- The following files were added:
7f5c89
    doc/examples/cert_dump.py
7f5c89
    test/test_cert_components.py
7f5c89
7f5c89
- Apply patches from  Miloslav Trmač <mitr@redhat.com>
7f5c89
  for ref counting and threading support. Thanks Miloslav!
7f5c89
7f5c89
- Review all ref counting, numerous ref counting fixes
7f5c89
7f5c89
- Implement cyclic garbage collection support by
7f5c89
  adding object traversal and clear methods
7f5c89
7f5c89
- Identify static variables, move to thread local storage
7f5c89
7f5c89
7f5c89
* Wed Mar 24 2010 John Dennis <jdennis@redhat.com> - 0.8-2
7f5c89
- change %%define to %%global
7f5c89
7f5c89
* Mon Sep 21 2009 John Dennis <jdennis@redhat.com> - 0.8-1
7f5c89
- The following methods, properties  and functions were added:
7f5c89
  SecItem.type SecItem.len, SecItem.data
7f5c89
  PK11SymKey.key_data, PK11SymKey.key_length, PK11SymKey.slot
7f5c89
  create_context_by_sym_key
7f5c89
  param_from_iv
7f5c89
  generate_new_param
7f5c89
  get_iv_length
7f5c89
  get_block_size
7f5c89
  get_pad_mechanism
7f5c89
- SecItem's now support indexing and slicing on their data
7f5c89
- Clean up parsing and parameter validation of variable arg functions
7f5c89
7f5c89
* Fri Sep 18 2009 John Dennis <jdennis@redhat.com> - 0.7-1
7f5c89
- add support for symmetric encryption/decryption
7f5c89
  more support for digests (hashes)
7f5c89
7f5c89
  The following classes were added:
7f5c89
  PK11SymKey PK11Context
7f5c89
7f5c89
  The following methods and functions were added:
7f5c89
  get_best_wrap_mechanism          get_best_key_length
7f5c89
  key_gen                          derive
7f5c89
  get_key_length                   digest_key
7f5c89
  clone_context                    digest_begin
7f5c89
  digest_op                        cipher_op
7f5c89
  finalize                         digest_final
7f5c89
  read_hex                         hash_buf
7f5c89
  sec_oid_tag_str                  sec_oid_tag_name
7f5c89
  sec_oid_tag_from_name            key_mechanism_type_name
7f5c89
  key_mechanism_type_from_name     pk11_attribute_type_name
7f5c89
  pk11_attribute_type_from_name    get_best_slot
7f5c89
  get_internal_key_slot            create_context_by_sym_key
7f5c89
  import_sym_key                   create_digest_context
7f5c89
  param_from_iv                    param_from_algid
7f5c89
  generate_new_param               algtag_to_mechanism
7f5c89
  mechanism_to_algtag
7f5c89
7f5c89
  The following files were added:
7f5c89
  cipher_test.py digest_test.py
7f5c89
7f5c89
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-3
7f5c89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
7f5c89
7f5c89
* Thu Jul  9 2009 John Dennis <jdennis@redhat.com> - 0.6-2
7f5c89
- restore nss.nssinit(), make deprecated
7f5c89
7f5c89
* Wed Jul  8 2009 John Dennis <jdennis@redhat.com> - 0.6-1
7f5c89
- fix bug #510343 client_auth_data_callback seg faults if False
7f5c89
  is returned from callback
7f5c89
7f5c89
* Wed Jul  1 2009 John Dennis <jdennis@redhat.com> - 0.5-1
7f5c89
- restore ssl.nss_init and ssl.nss_shutdown but make them deprecated
7f5c89
  add __version__ string to nss module
7f5c89
7f5c89
* Tue Jun 30 2009 John Dennis <jdennis@redhat.com> - 0.4-1
7f5c89
- add binding for NSS_NoDB_Init(), bug #509002
7f5c89
  move nss_init and nss_shutdown from ssl module to nss module
7f5c89
7f5c89
* Thu Jun  4 2009 John Dennis <jdennis@redhat.com> - 0.3-1
7f5c89
- installed source code in Mozilla CVS repository
7f5c89
  update URL tag to point to CVS repositoy
7f5c89
  (not yet a valid URL, still have to coordinate with Mozilla)
7f5c89
  minor tweak to src directory layout
7f5c89
7f5c89
* Mon Jun  1 2009 John Dennis <jdennis@redhat.com> - 0.2-1
7f5c89
- Convert licensing to MPL tri-license
7f5c89
- apply patch from bug #472805, (Miloslav Trmač)
7f5c89
  Don't allow closing a socket twice, that causes crashes.
7f5c89
  New function nss.io.Socket.new_socket_pair()
7f5c89
  New function nss.io.Socket.poll()
7f5c89
  New function nss.io.Socket.import_tcp_socket()
7f5c89
  New method nss.nss.Certificate.get_subject_common_name()
7f5c89
  New function nss.nss.generate_random()
7f5c89
  Fix return value creation in SSLSocket.get_security_status
7f5c89
  New function nss.ssl.SSLSocket.import_tcp_socket()
7f5c89
7f5c89
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-3
7f5c89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
7f5c89
7f5c89
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.1-2
7f5c89
- Rebuild for Python 2.6
7f5c89
7f5c89
* Tue Sep  9 2008 John Dennis <jdennis@redhat.com> - 0.1-1
7f5c89
- clean up ssl_example.py, fix arg list in get_cert_nicknames,
7f5c89
   make certdir cmd line arg consistent with other NSS tools
7f5c89
- update httplib.py to support client auth, add httplib_example.py which illustrates it's use
7f5c89
- fix some documentation
7f5c89
- fix some type usage which were unsafe on 64-bit
7f5c89
7f5c89
* Wed Jul  9 2008 John Dennis <jdennis@redhat.com> - 0.0-2
7f5c89
- add docutils to build requires so restructured text works
7f5c89
7f5c89
* Fri Jun 27 2008 John Dennis <jdennis@redhat.com> - 0.0-1
7f5c89
- initial release