Giter Club home page Giter Club logo

Comments (8)

otavio avatar otavio commented on May 18, 2024

@mfleisz I fail to see, except very customized embedded OSs, where HOME wouldn't be set.

What is the use case in this issue?

If this is very specific to embedded stuff (which I am affected as well) I'd prefer to move this to 1.1 if noone objects.

from freerdp.

mfleisz avatar mfleisz commented on May 18, 2024

Not just embedded systems will cause problems - no Windows-based system has "HOME" set by default. In it's current state the core is unusable on anything other than a non-embedded *nix platform as it simply crashes when getenv("HOME") fails.
It's hard for me to estimate how much effort it is going to be to have a clean fix. Maybe at least we can find a solution where certstore silently fails and the core is still able to connect to the server?

from freerdp.

otavio avatar otavio commented on May 18, 2024

Yes, windows is indeed a problem. The urgency of this issue depends if we're going to support Windows for 1.0 or not.

from freerdp.

awakecoding avatar awakecoding commented on May 18, 2024

@otavio: I did some work over the last couple of days to push the Windows port forward. I'll handle the configurable home issue, if it's not for Windows, it'll be for something else. ~/.freerdp is usually good for Linux and the BSDs, but then when you get out of those it's usually case by case for what's preferred.

from freerdp.

awakecoding avatar awakecoding commented on May 18, 2024

...and pushed.

Now if you set settings->home_path to something other than NULL (NULL by default), both the certstore and registry will use that value instead of calling getenv("HOME").

from freerdp.

mfleisz avatar mfleisz commented on May 18, 2024

Thx Marc-Andre, however the fix is not complete - get_local_certloc (called from x509_verify_cert in crypto.c) is still using getenv("HOME") (and later on seg faulting in strlen if HOME is not set) ...

from freerdp.

awakecoding avatar awakecoding commented on May 18, 2024

@mfleisz: now it should be fixed as well

from freerdp.

mfleisz avatar mfleisz commented on May 18, 2024

Awesome - thx :)

from freerdp.

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.