summaryrefslogtreecommitdiff
path: root/client/bankid.c
AgeCommit message (Collapse)AuthorFilesLines
2014-08-19Show an error message when certificate retreival failsSamuel Lidén Borell1-7/+8
2014-05-10do not mix TokenError and BankIDErrorcybjit1-1/+7
found with clang: bankid.c:245:25: warning: implicit conversion from enumeration type 'TokenError' to different enumeration type 'BankIDError' [-Wenum-conversion] BankIDError error = backend_storeCertificates(p7data, length, hostname); ~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2014-02-08Remove/merge unused functionsSamuel Lidén Borell1-7/+1
2014-02-08Change unspecified argument lists "()" into "(void)"Samuel Lidén Borell1-1/+1
2014-02-07Remove version expiry status checking systemSamuel Lidén Borell1-168/+6
This system had two purposes: 1) to make FriBID able to determine the latest version of the official software it could emulate, without having to upgrade FriBID itself. 2) to make it possible to "revoke" old versions of FriBID in case of security problems. It has turned out that this system is not necessary. 1) was never really needed because the official software was updated quite rarely anyway and only a few web sites cared about the version string anyway. 2) is a kind of "kill switch" but it's not very useful since it's only checked when you use the FriBID user interface. Hence users who use FriBID (the user interface) infrequently or users who do not use it any longer would not see the warning message. And it seems that most users only use FriBID infrequently (typically once a year or so). This change removes a lot of code. One of the function calls removed is platform_seedRandom which was ONLY used for the "expiry" feature which used rand(). This does not affect the crypto stuff which uses OpenSSL's random generator which in turn uses /dev/random.
2012-04-27Change my e-mailSamuel Lidén Borell1-1/+1
2012-04-08Print error message if the expiry file can't be createdSamuel Lidén Borell1-1/+4
2012-04-06Make version-to-emulate configurable in ~/.config/fribid/configSamuel Lidén Borell1-17/+32
This file is never overwritten automatically, unlike ~/.config/fribid/expiry
2011-07-12Add the TextCharacterEncoding parameterSamuel Lidén Borell1-3/+4
This parameter is just stored in the signature. It doesn't change how the message is displayed to the user (this is always autodetected).
2011-04-23Implement same-origin check for CreateRequest/StoreCertificatesSamuel Lidén Borell1-3/+4
2011-04-20Show the name attribute in the "choose password" dialogSamuel Lidén Borell1-0/+10
2011-04-17Show more specific error messages and use g_strerrorSamuel Lidén Borell1-5/+12
2011-04-11Add missing code from previos changeSamuel Lidén Borell1-4/+1
Prevents a double free...
2011-04-05Add a function stub for StoreCertificates + code that calls itSamuel Lidén Borell1-0/+17
2011-01-14Free the request on error in bankid.cSamuel Lidén Borell1-1/+4
2011-01-03Add certificate request creation to the interface for the backendsSamuel Lidén Borell1-1/+25
2010-11-23Implement the ServerTime parameterSamuel Lidén Borell1-7/+18
This parameter behaves much like the nonce/challenge parameter. It's simply a 10-digit value that's passed unchanged to the server (as long as it fits in a signed 32-bit integer).
2010-08-16Merge Henrik Nordströms smartcard branchSamuel Lidén Borell1-2/+18
Merge from commit 580da6270df61b973fd9ae8cd9aef046bb7e562d of http://github.com/hno/fribid.git
2010-07-03Add an abstraction layer for tokensSamuel Lidén Borell1-33/+14
This patch adds a common interface for different kinds of tokens. The interface should hopefully be able to support both smart cards and file-based tokens (PKCS12 and NGE/NGP), but at the moment only PKCS12 tokens are implemented. I've included a few other changes in this patch as well because it was easier to make them at the same time. This includes more useful error messages and a little refactoring of the PKCS12 code.
2010-06-08Update the version string to match the latest official clientSamuel Lidén Borell1-2/+2
2010-06-08Use the built-in expiry and emulated version after upgradesSamuel Lidén Borell1-18/+27
2010-03-23Implement the "NonVisibleData" parameterSamuel Lidén Borell1-1/+10
This parameter works like TextToBeSigned, except that the text is not shown to the user. It's used by Skatteverket (the Swedish Tax Office) to sign XML documents, for instance.
2010-02-05Replaced malloc+sprintf with a function on it's ownSamuel Lidén Borell1-21/+9
2010-01-02Increase use of const and static in the codeSamuel Lidén Borell1-5/+5
...and use char arrays instead of char pointers for string constants to avoid unnecessary indirection.
2010-01-02Removed a debug messageSamuel Lidén Borell1-1/+0
2010-01-02Improved version checker that uses DNS instead of HTTP/XMLSamuel Lidén Borell1-118/+45
2010-01-02Documented some functionsSamuel Lidén Borell1-2/+50
2010-01-02Renamed the XMLDSIG filesSamuel Lidén Borell1-2/+2
2010-01-02Renamed main/ to client/ and added a server directorySamuel Lidén Borell1-0/+353