aboutsummaryrefslogtreecommitdiffstats
path: root/src/wgtpkg-digsig.h
blob: 666063fbf97f83651c93092957a4742ecf45af8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 Copyright 2015, 2016, 2017 IoT.bzh

 author: José Bollo <jose.bollo@iot.bzh>

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
*/


/* verify the digital signature in file */
extern int verify_digsig(struct filedesc *fdesc);

/* create a digital signature */
extern int create_digsig(unsigned int index, const char *key, const char **certs);

/* check the signatures of the current directory */
extern int check_all_signatures();
useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * Reference: http://www.greywyvern.com/?post=337 */ @import "app/ibz-mixins"; link-button {@include ibz-button(#3366ff,1rem)}; // Modal should be relative and tip-modal-popup absolute tip-modal { position:relative; } .tip-modal-popup { //visibility: hidden; width: 20rem; position:absolute; top:1em; padding: 0.2em 0.6em; border:1px solid #996633; background-color:#e5ffff; color:#000; opacity:0; transition:visibility .5s linear 1s,opacity 1s linear; border-radius: 5px; i { margin: 0 .3rem 0 0; display: inline; } } token-refresh { @include ibz-button(grey,1rem) i {margin-left: .5rem;} margin-right: 1rem; } token-refresh.online { color: #0066cc; i {color: lime;} } token-refresh.offline { color: #ff00ff; i {color: red;} }