Giter Club home page Giter Club logo

Comments (6)

Jakuje avatar Jakuje commented on July 18, 2024

@metsma did you manage to have a look into this? We can probably ignore the errors or try to fix them (but there is dozens of them).

I am always surprised by the macos ci that works in PR but fails on master. Is there something we can make it failing the same way for both of them?

Or is it unrelated to the OpenSSL version change? By comparing the logs, I see the macos was updated from 12.6.9 to 12.7.2, but it still works in the PRs.

from opensc.

metsma avatar metsma commented on July 18, 2024

I will try find time for this.

from opensc.

metsma avatar metsma commented on July 18, 2024

I did look into, but this requires more in depth knowledge of all OpenSC internals.
Etc. all RSA bit/byte sizes are converted between size_t (unsigned long) until unsigned int and int (OpenSSL BN_bin2bn).
Not sure how it will affect if we change all them to size_t or int?
About usage and algorithm parameters we should probably use more fixed size. Currently I can see there is int, unsigned int, unsigned long. (Maybe u16? or even u32?)

from opensc.

Jakuje avatar Jakuje commented on July 18, 2024

Thank you for having a look into that! I agree that some syncing on a specific type would be beneficial. I think most of the internal types is already using size_t so I would propose to use size_t where possible (where it is really only size and not a error code or something).

Algorithms or fixed enums should really used that enum number if possible. In other cases, the unsigned long usage mostly stems from the PKCS#11 level specification where this type is used for most of the stuff so my proposal would be to try to stick to this.

I started changing some of the stuff, but there is still a lot to go.

I thought if you have some insight of what changed. If it is because of the new OpenSSL, clang, mac or something completely independent ...

from opensc.

metsma avatar metsma commented on July 18, 2024

I think this is related to master builds signed packages and then OpenSCTokenApp is pulled to build.
OpenSC package use xcode project and thus different compiler flags.

from opensc.

Jakuje avatar Jakuje commented on July 18, 2024

I think the #2993 will fix the master build, but I do not know how to check this in the PR (I tested with the flags locally and in additional specially crafted linux run with clang and these specific flags). I know, its huge, but inputs/reviews are welcomed.

from opensc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.