Discussion: Difficult initialisation error

オープン
#793 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
38/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
cpp
領域
security

調査の方向性

Start at src/lib/SoftHSM.cpp, around line 567, where initialization handles a missing configuration file. Read the surrounding error handling and compare the proposed CKR_FUNCTION_FAILED and CKR_DEVICE_ERROR codes to determine which best fits. Done means the project has an agreed error code and a pull request implementing it; the issue does not identify tests to run.

索引モデルが issue の本文から書いたものです。

説明

When SoftHSM is missing its config file it exits with a CKR_GENERAL_ERROR which I think is somewhat misleading as this is generally seen as some hopeless situation where a catastrophic error has occurred and does not hint to something as simple as config missing. I think it would be more useful to a developer if instead at this point we returned a CKR_FUNCTION_FAILED or CKR_DEVICE_ERROR which hint more at invalid configuration/data. I don't know the answer here so was looking for input on what I think is something which could be improved, with an agreed approach I am happy to build the PR implementing it.

https://github.com/softhsm/SoftHSMv2/blob/557b2fd49c64639c4b13416283d91a60748d61a7/src/lib/SoftHSM.cpp#L567

主要言語
C++
スター
1.1k
フォーク
434
平均マージ
12日 14時間
マージ済み PR(30日)
2

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

softhsm/SoftHSMv2 のほかの issue

softhsm/SoftHSMv2 の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。