Skip to content

Commit 9fd8058

Browse files
committed
Update comments and warning for async
1 parent 58336da commit 9fd8058

File tree

5 files changed

+42
-19
lines changed

5 files changed

+42
-19
lines changed

renpy/ecsign.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2004-2025 Tom Rothamel <pytom@bishoujo.us>
1+
# Copyright 2026 B.Kats and Tom Rothamel <pytom@bishoujo.us>
22
#
33
# Permission is hereby granted, free of charge, to any person
44
# obtaining a copy of this software and associated documentation files

renpy/ecsign.pyx

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2004-2025 Tom Rothamel <pytom@bishoujo.us>
1+
# Copyright 2026 B.Kats and Tom Rothamel <pytom@bishoujo.us>
22
#
33
# Permission is hereby granted, free of charge, to any person
44
# obtaining a copy of this software and associated documentation files
@@ -19,6 +19,22 @@
1919
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
2020
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2121

22+
23+
########################################
24+
## WARNING for when editing this file ##
25+
########################################
26+
27+
# This file contain functions that need to support async handling for the web build
28+
# Renaming or reordering any functions will break the async handling
29+
# The cython generated names for the following functions need to be listed
30+
# in the ASYNCIFY_ONLY list: (tasks/renpython.py; 2 names for each function)
31+
# - generate_private_key
32+
# - sign_data
33+
# - verify_data
34+
# - get_public_key_from_private
35+
# - validate_private_key
36+
# - validate_public_key
37+
2238
from libc.stdlib cimport free
2339
import base64
2440

src/ec_sign_core.c

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
1-
// Released under MIT License and sample code from OpenSSL see below.
2-
3-
/************************************************************************************
4-
5-
Code is partially based on Demos from OpenSSL. They are released with following info:
6-
7-
* Copyright 2021-2023 The OpenSSL Project Authors. All Rights Reserved.
8-
*
9-
* Licensed under the Apache License 2.0 (the "License"). You may not use
10-
* this file except in compliance with the License. You can obtain a copy
11-
* in the file LICENSE in the source distribution or at
12-
* https://www.openssl.org/source/license.html
13-
14-
***********************************************************************************/
15-
1+
/*
2+
Copyright 2026 B.Kats and Tom Rothamel <pytom@bishoujo.us>
3+
4+
Permission is hereby granted, free of charge, to any person
5+
obtaining a copy of this software and associated documentation files
6+
(the "Software"), to deal in the Software without restriction,
7+
including without limitation the rights to use, copy, modify, merge,
8+
publish, distribute, sublicense, and/or sell copies of the Software,
9+
and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be
13+
included in all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22+
*/
1623
#ifndef __EMSCRIPTEN__
1724

1825
#include "ec_sign_core.h"

src/ec_sign_core.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2025 B.Kats and Tom Rothamel <pytom@bishoujo.us>
2+
Copyright 2026 B.Kats and Tom Rothamel <pytom@bishoujo.us>
33
44
Permission is hereby granted, free of charge, to any person
55
obtaining a copy of this software and associated documentation files

src/ec_sign_core_web.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2025 B.Kats and Tom Rothamel <pytom@bishoujo.us>
2+
Copyright 2026 B.Kats and Tom Rothamel <pytom@bishoujo.us>
33
44
Permission is hereby granted, free of charge, to any person
55
obtaining a copy of this software and associated documentation files

0 commit comments

Comments
 (0)