Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
apk-tools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
61
Issues
61
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
apk-tools
Commits
0cc41ba4
Commit
0cc41ba4
authored
Jan 01, 2011
by
Timo Teräs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
index: remove support of old index format
It's no longer needed or used.
parent
b01d144c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
14 deletions
+0
-14
src/apk_package.h
src/apk_package.h
+0
-1
src/index.c
src/index.c
+0
-7
src/package.c
src/package.c
+0
-6
No files found.
src/apk_package.h
View file @
0cc41ba4
...
...
@@ -32,7 +32,6 @@ struct apk_name;
#define APK_SIGN_NONE 0
#define APK_SIGN_VERIFY 1
#define APK_SIGN_VERIFY_IDENTITY 2
#define APK_SIGN_GENERATE_V1 3
#define APK_SIGN_GENERATE 4
#define APK_SIGN_VERIFY_AND_GENERATE 5
...
...
src/index.c
View file @
0cc41ba4
...
...
@@ -17,8 +17,6 @@
#include "apk_database.h"
#include "apk_print.h"
#define INDEX_OLD_FORMAT 0x10000
struct
counts
{
int
unsatisfied
;
};
...
...
@@ -46,9 +44,6 @@ static int index_parse(void *ctx, struct apk_db_options *dbopts,
case
'd'
:
ictx
->
description
=
optarg
;
break
;
case
INDEX_OLD_FORMAT
:
ictx
->
method
=
APK_SIGN_GENERATE_V1
;
break
;
default:
return
-
1
;
}
...
...
@@ -219,8 +214,6 @@ static struct apk_option index_options[] = {
{
'd'
,
"description"
,
"Embed TEXT as description and version "
"information of the repository index"
,
required_argument
,
"TEXT"
},
{
INDEX_OLD_FORMAT
,
"old-format"
,
"Specify to create old style index files"
}
};
static
struct
apk_applet
apk_index
=
{
...
...
src/package.c
View file @
0cc41ba4
...
...
@@ -367,11 +367,6 @@ void apk_sign_ctx_init(struct apk_sign_ctx *ctx, int action,
}
memcpy
(
&
ctx
->
identity
,
identity
,
sizeof
(
ctx
->
identity
));
break
;
case
APK_SIGN_GENERATE_V1
:
ctx
->
md
=
EVP_md5
();
ctx
->
control_started
=
1
;
ctx
->
data_started
=
1
;
break
;
case
APK_SIGN_GENERATE
:
case
APK_SIGN_VERIFY_AND_GENERATE
:
ctx
->
md
=
EVP_sha1
();
...
...
@@ -574,7 +569,6 @@ int apk_sign_ctx_mpart_cb(void *ctx, int part, apk_blob_t data)
sctx
->
data_verified
=
1
;
break
;
case
APK_SIGN_GENERATE
:
case
APK_SIGN_GENERATE_V1
:
/* Package identity is the checksum */
sctx
->
identity
.
type
=
EVP_MD_CTX_size
(
&
sctx
->
mdctx
);
EVP_DigestFinal_ex
(
&
sctx
->
mdctx
,
sctx
->
identity
.
data
,
NULL
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment