aeolwyr / tergent

A cryptoki library that uses Android keystore as the backend
GNU General Public License v3.0
74 stars 7 forks source link

-a flag crashes the application #3

Closed aeolwyr closed 4 years ago

aeolwyr commented 5 years ago

Right now, if the user specifies the -a flag, the application will crash.

Currently there is no mechanism to differentiate between 1) Running in foreground mode, and a user path is provided. 2) Spawned as a child, and the path is auto generated by the parent.

In case 1, we must not touch the directory. In case 2, we have to clean it up at shutdown.

This function is responsible for setting up the cleanup functions. It will fail if the parent directory already exists.

aeolwyr commented 4 years ago

Solved by fixing the root cause, which is issue #4. See release 1.0, commit d685846.

Tergent does not have any command line arguments anymore as it is now a library.