Changeset 5145:0e32bd00f341
- Timestamp:
- 2007-04-29 19:10:20 (21 months ago)
- Author:
- Alain Bench <veronatif@…>
- Branch:
- HEAD
- Message:
-
contrib/smime.rc: $smime_verify_opaque_command fallback to -noverify
to get signed text despite a failed -verify (but send only this first
failure notice to stderr).
smime.c: fflush() before rewind().
Closes #2428. Helps Debian Bug 420014
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r2946
|
r5145
|
|
| 80 | 80 | |
| 81 | 81 | # Verify a signature of type application/x-pkcs7-mime |
| 82 | | set smime_verify_opaque_command="openssl smime -verify -inform DER -in %s %C" |
| | 82 | set smime_verify_opaque_command="\ |
| | 83 | openssl smime -verify -inform DER -in %s %C || \ |
| | 84 | openssl smime -verify -inform DER -in %s -noverify 2>/dev/null" |
| 83 | 85 | |
| 84 | 86 | |
-
|
r5137
|
r5145
|
|
| 860 | 860 | fflush (fpout); |
| 861 | 861 | rewind (fpout); |
| | 862 | fflush (fperr); |
| 862 | 863 | rewind (fperr); |
| 863 | | fflush (fperr); |
| 864 | 864 | |
| 865 | 865 | |
| … |
… |
|
| 955 | 955 | fflush (fpout); |
| 956 | 956 | rewind (fpout); |
| | 957 | fflush (fperr); |
| 957 | 958 | rewind (fperr); |
| 958 | | fflush (fperr); |
| 959 | 959 | empty = (fgetc (fpout) == EOF); |
| 960 | 960 | if (empty) |
| … |
… |
|
| 1001 | 1001 | fflush (fpout); |
| 1002 | 1002 | rewind (fpout); |
| | 1003 | fflush (fperr); |
| 1003 | 1004 | rewind (fperr); |
| 1004 | | fflush (fperr); |
| 1005 | 1005 | empty = (fgetc (fpout) == EOF); |
| 1006 | 1006 | if (empty) |
| … |
… |
|
| 1064 | 1064 | fflush (fpout); |
| 1065 | 1065 | rewind (fpout); |
| | 1066 | fflush (fperr); |
| 1066 | 1067 | rewind (fperr); |
| 1067 | | fflush (fperr); |
| 1068 | 1068 | empty = (fgetc (fpout) == EOF); |
| 1069 | 1069 | if (empty) |
| … |
… |
|
| 1751 | 1751 | if (s->flags & M_DISPLAY) |
| 1752 | 1752 | { |
| | 1753 | fflush (smimeerr); |
| 1753 | 1754 | rewind (smimeerr); |
| 1754 | 1755 | |