summaryrefslogtreecommitdiff
path: root/xmlsecurity/source/xmlsec/nss
AgeCommit message (Collapse)AuthorFilesLines
2014-01-17Convert xmlsecurity to cppu::supportsServiceAlexandre Vicenzi1-7/+4
Change-Id: Ifcec9e067e54cc8a3d1254d41d09ea251820849d
2013-11-19remove most use of RTL_CONSTASCII_USTRINGPARAM macroNoel Grandin1-1/+1
This is largely unnecessary when working with OUString Change-Id: I3cf4d68357a43665d01162ef4a2d5346a45da9be
2013-11-07remove unnecessary use of OUString constructor in XMLSECURITY moduleNoel Grandin4-4/+4
Change-Id: I95b0eda83c60456f3db267183030fe5f6cd70bc4
2013-10-22Bin comments that claim to say why some header is includedTor Lillqvist2-2/+2
They are practically always useless, often misleading or obsolete. Change-Id: I2d32182a31349c9fb3b982498fd22d93e84c0c0c
2013-08-18fdo#57950: Remove some chained appends in xmlsecurityJelle van der Waa1-7/+2
Change-Id: I35ac622abb995a9259f0774f463ec2816b3668b6 Reviewed-on: https://gerrit.libreoffice.org/5477 Reviewed-by: Andrzej J.R. Hunt <andrzej@ahunt.org> Tested-by: Andrzej J.R. Hunt <andrzej@ahunt.org>
2013-08-17Revert "fdo#57950: Remove some chained appends in xmlsecurity"Andrzej J.R. Hunt1-2/+7
This reverts commit 4f20c9f6f95c117bcdb520682df4fa1429a56477 Change-Id: I4d8cef801d570b0c20e580144e79a5940b100271 Reviewed-on: https://gerrit.libreoffice.org/5476 Reviewed-by: Andrzej J.R. Hunt <andrzej@ahunt.org> Tested-by: Andrzej J.R. Hunt <andrzej@ahunt.org>
2013-08-17fdo#57950: Remove some chained appends in xmlsecurityJelle van der Waa1-7/+2
Change-Id: If70fa38ad4836b6dacdd0c5577c66b78be6826a6 Reviewed-on: https://gerrit.libreoffice.org/5465 Reviewed-by: Andrzej J.R. Hunt <andrzej@ahunt.org> Tested-by: Andrzej J.R. Hunt <andrzej@ahunt.org>
2013-07-24fdo#63690 - replace RTL_CONTEXT_ macros with SAL_INFOJelle van der Waa2-2/+1
Change-Id: Ie959aa5a6874aae3c60273355a959c344e82699e Reviewed-on: https://gerrit.libreoffice.org/5083 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-07-22Mark as constTakeshi Abe1-1/+1
Change-Id: I2746b92b1360c3c181879a81f653c44ef609f351
2013-06-29remove OUString wrap for string literalsThomas Arnhold2-7/+7
For some functions and all kinds of Exceptions. CannotConvertException CloseVetoException DisposedException EmptyUndoStackException ErrorCodeIOException Exception GridInvalidDataException GridInvalidModelException IOException IllegalAccessException IllegalArgumentException IllegalTypeException IndexOutOfBoundsException NoMasterException NoSuchElementException NoSupportException PropertyVetoException RuntimeException SAXException ScannerException StorageWrappedTargetException UnsupportedFlavorException VetoException WrappedTargetException ZipIOException throwGenericSQLException throwIllegallArgumentException createInstance createInstanceWithContext forName getByName getPackageManager getPropertyValue getUnpackedValueOrDefault getValueByName hasPropertyByName openKey setName setPropertyValue supportsService bash command: for i in `cat list`; do git grep "$i\s*(\s*OUString(\s*\"" -- '*.[hc]xx' | cut -d ':' -f1 | sort -u | xargs sed -i -e "s/\(\<$i\s*(\)\s*OUString(\s*\(\"[^\")\\]*\"\)\s*)\s*/\1\2/g" -e "s/\($i.*\)\"+ /\1\" + /g"; done Change-Id: Iaf8e641b0abf28c082906014f87a183517630535 Reviewed-on: https://gerrit.libreoffice.org/4624 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-06-10fdo#46808, Convert xml::crypto services to new styleNoel Grandin9-87/+28
Also remove the unnecessary XInitialization implementations. Change-Id: I81f32b2cdcf69b84fe4b15382f9294073a7f2f20
2013-06-06Some more modules at least building with mingw64Fridrich Štrba1-2/+3
Change-Id: I3ea039655aecb7885bb310b1f2c29d66f9f7bb4f
2013-05-06remove usage of RTL_CONSTASCII_USTRINGPARAMLuboš Luňák2-8/+8
Mechanical removal of usage together with OUString ctor, done by compiler plugin. Change-Id: I554227f76df0dac620b1b46fca32516f78b462c5
2013-04-18date/time IDL datatypes incompatible changeLionel Elie Mamane1-2/+3
- nanosecond precision - signed (allowed negative) year Also: assorted improvements / bugfixes in date/time handling code. Some factorisation of copy/pasted code. Change-Id: I761a1b0b8731c82f19a0c37acbcf43d3c06d6cd6
2013-04-17It is very wrong to #undef _DEBUG in some source files of a libraryTor Lillqvist2-15/+0
Nowadays in a dbgutil build with MSVC, the debugging runtime (C++ library) is used. Just like with the GNU libstdc++, it is not binary compatible with the non-debugging variant. All sources that go into one DLL or EXE must be compiled with the same _DEBUG settings (unless one is extremely careful and knows exactly what one is doing, which presumably is not the case with this code). With previous compilers this has gone undetected, but with MSVC2012 at least, you get link-time errors, which is a good thing: nssinitializer.o : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in biginteger.o nssinitializer.o : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug' in biginteger.o Whether this actually has caused run-time erroneous behaviour or not in a dbgutil build is another thing... Change-Id: I0c42161f00a0e37b438e3b911e3c0058edadd800
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák17-122/+112
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk have kept them, in order not to break external API (the automatic using declaration is LO-internal). Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-03-25The [_]DEBUG_WAS_DEFINED macros are not used hereStephan Bergmann2-16/+4
...but only in connectivity/source/drivers/mozab/{pre,post}_include_mozilla.h, which is never included from here, so this smells like cargo-cult. Change-Id: Iac0d7d60caad7c090445d551b7adb50424130e2a
2013-03-25Consolidate XMLSEC_NO_SIZE_T setting in xmlsecurity/xmlsec-wrapper.hStephan Bergmann5-41/+5
...so all xmlsec/*.h includes are bundled there now (except, for pragmatic reasons, the xmlsec/mscrypto/*.h ones that unconditionally include windows.h and only work on Windows). Change-Id: I33e642f4f6a2e40edd6950af7f209c8b76c6e5fe
2013-03-25stricmp macro is unusedStephan Bergmann1-4/+0
...since f3eb77586e067a46211334a78987652815f47744 "further removing of dead code." Change-Id: I6805c5adafcf19782f352cdacd0d99a9e7681eb6
2013-03-19automated removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStringsThomas Arnhold2-7/+7
Done with a perl regex: s/OUString\s*\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/OUString\($1\)/gms Change-Id: Idf28320817cdcbea6d0f7ec06a9bf51bd2c3b3ec Reviewed-on: https://gerrit.libreoffice.org/2832 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-18fix other problems found by WundefLuboš Luňák1-0/+1
Change-Id: Ib4aba95436f82d2a20b07a092f0fd07e0620fdcf
2013-03-05doubled usingThomas Arnhold2-2/+0
Change-Id: Ib1d3213a688194bfb027b7bca5bd9ac1b7bb1b28
2013-02-27fdo#39446 - Bloat Removal. Removing uncallable code with callcatcherJean-Noël Rouvignac1-26/+0
Removed several unused methods. Could not remove ScVbaFormat<ooo::vba::excel::XStyle>::getAddIndent() and ScVbaFormat<ooo::vba::excel::XStyle>::setAddIndent(com::sun::star::uno::Any const&) because it breaks compilation (they are implementing pure virtual methods). Should Test::test1Table1Page() really be removed? (test class) Conflicts: unusedcode.easy Change-Id: I98a761f66f28e3a82661c10a5fa1dc7e109fff2f
2013-02-22coverity#982735 Negative loop boundNorbert Thiebaud1-6/+14
Change-Id: I597cd1204b0b7f5c7351482c3cdd00fc6111218a Reviewed-on: https://gerrit.libreoffice.org/2224 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-02-22coverity#705782 Resource LeakNorbert Thiebaud1-0/+1
Change-Id: I8346d3fd2ce4345cc9a352abb608cfec5f6939f4 Reviewed-on: https://gerrit.libreoffice.org/2223 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-02-22coverity#982249 Unchecked return valueNorbert Thiebaud1-10/+10
Change-Id: I959599c899b489aa42ccce60c6794869041522a0 Reviewed-on: https://gerrit.libreoffice.org/2222 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-02-19nsscrypto_initializer: MSVC does not support C99 dynamic arraysMichael Stahl1-6/+8
Change-Id: I407b2308756b46fbf0920881fc20972b486819b7
2013-02-18coverity#705355 coverity#705356 Missing break in switchNorbert Thiebaud1-0/+2
Change-Id: I9a0a370eb1279a184a47e15bcefc6ce5e4025aa3 Reviewed-on: https://gerrit.libreoffice.org/2226 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2013-02-18coverity#982590 Explicit null dereferencedNorbert Thiebaud1-7/+12
Change-Id: Ie898603f64a4568a8502caf3db154ae5ce008af9 Reviewed-on: https://gerrit.libreoffice.org/2227 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2013-02-18coverity#982591 Dereference after null checkNorbert Thiebaud1-3/+6
Change-Id: I8651ecb0287d686da3e1ca6a6e46549abe3e0c38 Reviewed-on: https://gerrit.libreoffice.org/2225 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
2012-12-21Remove unused cppuhelper/servicefactory.hxx includesStephan Bergmann1-1/+0
Change-Id: I27fd4d1f1dfafccaa7936defb5cd687d6266e0a2
2012-11-30c++ API: use css alias in generated headers, adds global css declThorsten Behrens2-2/+0
This changes all generated API headers (.hpp and .hdl) to use a namespace alias 'css' instead of the pointlessly long com::sun::star Makes the change in cppumaker & associated tools, adds a global namespace alias definition in sal/types.h, and removes a kiloton of local, now pointless-to-harmful versions of that alias from all over the code. Change-Id: Ice5a644a6b971a981f01dc0589d48f5add31cc0f
2012-11-19Clean-up "SYSTEM_MOZILLA" -> "SYSTEM_NSS"Stephan Bergmann1-8/+6
Change-Id: I47ec3aeb14445b697bf8f5af34c5d16a14069735
2012-11-07Improve loggingStephan Bergmann2-6/+24
Change-Id: I5ff457c76970356a5748f6f319f32a1f49b86ca1
2012-11-06'xMSF' : undeclared identifierTor Lillqvist1-1/+1
Change-Id: Iba7a18b0c28da6a3955e62fe54ba96842e571064
2012-11-05fdo#46808, Adapt xml::crypto::SEInitializer UNO service to new styleNoel Grandin4-54/+49
Also create an NSSInitializer service IDL and split it's interfaces out from SEInitializer. It looks like this was the intention all along, but someone took a shortcut. Change-Id: I53ac1cb5d38b78b6718fe22c9666eae1f194a3b7
2012-10-13loplugin: some log, indent and unused variable warningsCaolán McNamara1-1/+0
fix up some indents, remove some unused OUStrings and add some log areas Change-Id: I5c50807aff7a726b03b72522975d9b75e6685b9b
2012-10-04Fixes/improvements on previous commitStephan Bergmann1-1/+1
* UUIInteractionHandler still needs to implement XInitialization. * Moved ambiguating InteractionHandler typedef out of the way. * Removed InteractionHandler.createDefault, as it was originally stated that "it is strongly recommended that [the "Parent"] property is supplied." * Added back documentation about Parent and Context. * Simplified some call-sites to directly use XInteractionHandler2. Change-Id: I1029b8f3cf079171c75920cafaaa44b5bbada883
2012-10-04fdo#46808, Adapt task::InteractionHandler UNO service to new styleNoel Grandin1-25/+19
Since we don't need to expose XInitialisation, we can make the new-style service implement XInteractionHandler2. Change-Id: Ib27beed1c12df17592c6472d6f58c233d2c41558
2012-08-20callcatcher: remove some of the slightly trickier unused methodsCaolán McNamara6-39/+9
Change-Id: Ief164c980f3a92316e1f47cb50bdf243155b6dd9
2012-08-04Replace usage of rtl/memory.h in xmlsecurity their equivalent from string.hArnaud Versini3-9/+9
Change-Id: Id4a088864ee28163160d6ac408592952fe6c797d
2012-07-17re-base on ALv2 code. Includes:Michael Meeks13-309/+189
retain presence of MPL licensed nssrenam.h symbol renamer.
2012-06-29Remove include guardsThomas Arnhold1-3/+0
Change-Id: Ib4ba76d0083e5bd75cc589a55318089c004f591f
2012-06-29Remove some more include guardsThomas Arnhold1-3/+0
Change-Id: I7c62d086cb593744785abecae7a107686a4d65ce
2012-06-21re-base on ALv2 code.Michael Meeks11-259/+160
Change-Id: I6c145e984c885c7e06caa1c27bfb354ea49ad9ce
2012-06-09Remove superfluous empty lines on topThomas Arnhold1-3/+0
More than two lines are removed for readability. Change-Id: Ibff6cf68d7c512e240a54065b54a225bb23a782b
2012-06-01nuke unused namespaceTakeshi Abe1-1/+0
Change-Id: Ic00cdfce4172af0a2f0aa1aa33ef5e386d407976
2012-05-29targeted string re-workNorbert Thiebaud4-9/+9
Change-Id: I6ce76c22118586b213161a0e307a53b22b318004
2012-05-04more robust nss initialization, related fdo#45171Markus Mohrhard1-2/+4
fall back to without profile if path is invalid or profile does not exist Change-Id: Ic9a73fbaaa288f8bc99dab2b1d679c2cbe6baa89
2012-04-27Resolves: fdo#39825 Make detection of certificate folder ui-configurableCaolán McNamara1-37/+46
Display in the (unix) options gui the NSS cert dir that has been auto-detected for use with digital signatures. Show the other detected possibilities and allow it to be overridden. The autodetection should basically work out of the box, but if there's some bustage at least the UI can be used to sort it out and/or let developers debug it. This removes the need for the horrible MOZILLA_CERTIFICATE_FOLDER hack, though that's still supported.