Skip to content
  1. Feb 24, 2019
  2. Dec 17, 2018
    • ntome's avatar
      weboob.browser.nss: map PR_END_OF_FILE_ERROR to socket.timeout · 211b13ff
      ntome authored and Romain Bignon's avatar Romain Bignon committed
      It's not exactly a timeout but for now it seems sufficient for requests
      to retry.
      I don't know exactly in what circumstances this errors occurs in the
      wild, but it can tentatively be reproduced experimentally with a very
      long wait (minutes or hours) before doing the handshake.
      211b13ff
  3. Nov 10, 2018
    • ntome's avatar
      weboob.browser.nss: force "sql:" prefix on newer versions · 541dbea1
      ntome authored and Romain Bignon's avatar Romain Bignon committed
      NSS seem to have different behaviors on different distros, e.g. Debian
      and CentOS, and it also depends on the NSS version, which creates a
      whole matrix of cases.
      Try to force SQL database use for >=3.35 and default (probably DBM) for
      versions <3.35.
      
      NSS might still ask the infamous question:
      
          Enter Password or Pin for "NSS Certificate DB":
      
      but deleting the old generated *.db files should solve it.
      541dbea1
    • ntome's avatar
      weboob.browser.nss: disable OCSP temporarily · 372240e7
      ntome authored and Romain Bignon's avatar Romain Bignon committed
      Some shit sites like cragr/lcl/bforbank currently cause NSS to have
      error SEC_ERROR_OCSP_UNKNOWN_CERT, even in Firefox. Since disabling
      cannot be done per module, just disable it for those dumbasses.
      372240e7
  4. Oct 11, 2018
  5. Sep 16, 2018
  6. Aug 18, 2018
  7. Jul 29, 2018
    • ntome's avatar
      weboob.browser.nss: finally implement timeout support · 78e1f10f
      ntome authored and Romain Bignon's avatar Romain Bignon committed
      With NSS, unlike python sockets, the timeout should be passed on every
      recv call. But since it's implemented in C, we're forced to reimplement
      read/readinto/etc.
      Use io.BufferedRWPair and io.RawIOBase to implement some of them and
      implement the others by hand.
      78e1f10f
    • ntome's avatar
      nss: check appropriate nss db file to initialize cert db · 1b58a401
      ntome authored and Romain Bignon's avatar Romain Bignon committed
      NSS uses different filenames for its certificate database depending on
      its version (cert8.db before NSS 3.35, cert9.db after).
      This filename is checked to determine if the certificate db must be
      created, so we need to find the correct filename.
      1b58a401
  8. Jun 09, 2018
  9. Mar 31, 2018
  10. Mar 03, 2018
    • btampigny's avatar
      [nss] handle CA bundles and nss on centos · 8668ccf5
      btampigny authored and Romain Bignon's avatar Romain Bignon committed
      This patch has been done because certutil does not seem to handle files
      containing multiple certificates. We also ignore files without
      extentions because centos contains some Makefile examples in the system
      CA folder
      8668ccf5
  11. Sep 06, 2017
  12. Jul 08, 2017
  13. Apr 01, 2017
  14. Mar 11, 2017